Spaces:
Runtime error
Runtime error
Commit
·
634cfc8
1
Parent(s):
a9aefc1
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ def calculate_rewards(subscription, num_generations, author_share, ro_share, num
|
|
104 |
'attribution': f"{sim*100:.0f}%",
|
105 |
'author_month_reward': f"{author_month_reward:.0f}€",
|
106 |
'ro_month_reward': f"{ro_month_reward:.0f}€"
|
107 |
-
'raw_similarity': sim # TEST INSERT valeur brute de similarité (comprise entre 0 et 1)
|
108 |
# 'paid_per_month': f"{subscription:.0f}€",
|
109 |
# 'paid_per_gen': f"{paid_per_gen:.2f}€",
|
110 |
# 'aro_share': f"{aro_share:.2f}c€",
|
|
|
104 |
'attribution': f"{sim*100:.0f}%",
|
105 |
'author_month_reward': f"{author_month_reward:.0f}€",
|
106 |
'ro_month_reward': f"{ro_month_reward:.0f}€"
|
107 |
+
'raw_similarity': float(sim.item()) # TEST INSERT valeur brute de similarité (comprise entre 0 et 1)
|
108 |
# 'paid_per_month': f"{subscription:.0f}€",
|
109 |
# 'paid_per_gen': f"{paid_per_gen:.2f}€",
|
110 |
# 'aro_share': f"{aro_share:.2f}c€",
|