Spaces:
Runtime error
Runtime error
Commit
·
1ff6a56
1
Parent(s):
634cfc8
Update app.py
Browse files
app.py
CHANGED
@@ -103,8 +103,8 @@ def calculate_rewards(subscription, num_generations, author_share, ro_share, num
|
|
103 |
'paid_per_month': f"{subscription:.0f}€",
|
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':
|
108 |
# 'paid_per_month': f"{subscription:.0f}€",
|
109 |
# 'paid_per_gen': f"{paid_per_gen:.2f}€",
|
110 |
# 'aro_share': f"{aro_share:.2f}c€",
|
|
|
103 |
'paid_per_month': f"{subscription:.0f}€",
|
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) float(sim.item())
|
108 |
# 'paid_per_month': f"{subscription:.0f}€",
|
109 |
# 'paid_per_gen': f"{paid_per_gen:.2f}€",
|
110 |
# 'aro_share': f"{aro_share:.2f}c€",
|