C10X commited on
Commit
bf7b8e4
·
verified ·
1 Parent(s): c126d95

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -12
app.py CHANGED
@@ -182,13 +182,17 @@ def process_dataset(
182
  median_score_str = f"{stats_dict['statistics']['median']:.3f}"
183
  samples_str = f"{actual_samples:,}"
184
 
185
- summary_md = f"""
186
- #### Scoring Completed!
187
- - **Dataset:** `{model_id}`
188
- - **Processed Samples:** `{samples_str}`
189
- - **Mean Score:** `{mean_score_str}`
190
- - **Median Score:** `{median_score_str}`
191
- """
 
 
 
 
192
 
193
  yield update_log("Process finished successfully!")
194
 
@@ -222,11 +226,6 @@ def upload_to_hub(
222
  if plot_file and os.path.exists(plot_file):
223
  upload_file(path_or_fileobj=plot_file, path_in_repo="quality_distribution.png", repo_id=repo_id, repo_type="dataset", token=hf_token)
224
 
225
- # ==============================================================================
226
- # --- HATAYI GİDEREN DÜZELTME BURADA ---
227
- # Markdown kod bloğunun bitişi (```) ile Python string'inin bitişi (""")
228
- # ayrı satırlara alındı.
229
- # ==============================================================================
230
  readme_content = dedent(f"""
231
  ---
232
  license: apache-2.0
 
182
  median_score_str = f"{stats_dict['statistics']['median']:.3f}"
183
  samples_str = f"{actual_samples:,}"
184
 
185
+ # ==============================================================================
186
+ # --- HATAYI GİDEREN DÜZELTME BURADA ---
187
+ # Metin bloğunu `dedent()` ile sarmalayarak girinti sorununu çözüyoruz.
188
+ # ==============================================================================
189
+ summary_md = dedent(f"""
190
+ #### Scoring Completed!
191
+ - **Dataset:** `{model_id}`
192
+ - **Processed Samples:** `{samples_str}`
193
+ - **Mean Score:** `{mean_score_str}`
194
+ - **Median Score:** `{median_score_str}`
195
+ """)
196
 
197
  yield update_log("Process finished successfully!")
198
 
 
226
  if plot_file and os.path.exists(plot_file):
227
  upload_file(path_or_fileobj=plot_file, path_in_repo="quality_distribution.png", repo_id=repo_id, repo_type="dataset", token=hf_token)
228
 
 
 
 
 
 
229
  readme_content = dedent(f"""
230
  ---
231
  license: apache-2.0