debayan commited on
Commit
cd3faf5
Β·
1 Parent(s): 5eb351f

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. gradio_app.py +9 -4
gradio_app.py CHANGED
@@ -27,7 +27,10 @@ INTRODUCTION_TEXT = "πŸ† The ISM2023w Leaderboard ranks and evaluates models \
27
  on the Hugging Face Spaces. \
28
  \nWe report the Precision, Recall, Accuracy, Weighted [F1 Score](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html)\n"
29
 
30
- CSV_TEXT = "<p>Please make sure that you upload the CSV in the correct format. Click the link to download a sample CSV!</p> <a href=\"https://huggingface.co/spaces/debayan/ism_2023w/raw/main/example.csv\" download=\"example.csv\">Download CSV</a>"
 
 
 
31
 
32
  METRICS_TAB_TEXT = """
33
  Here you will find details about the multi-class classification metrics and datasets reported in our leaderboard.
@@ -38,6 +41,8 @@ below.
38
  """
39
 
40
 
 
 
41
  LAST_UPDATED = "Sep 28th 2023"
42
 
43
 
@@ -225,7 +230,7 @@ with gr.Blocks() as demo:
225
  gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
226
  gr.HTML(CSV_TEXT, elem_classes="markdown-text")
227
 
228
-
229
 
230
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
231
  with gr.TabItem("πŸ… Leaderboard Phase 1", elem_id="od-benchmark-tab-table-1", id=0):
@@ -275,7 +280,7 @@ with gr.Blocks() as demo:
275
  )
276
 
277
 
278
-
279
 
280
 
281
 
@@ -286,6 +291,6 @@ with gr.Blocks() as demo:
286
 
287
 
288
 
289
- demo.launch( debug=True,server_name="0.0.0.0")
290
 
291
 
 
27
  on the Hugging Face Spaces. \
28
  \nWe report the Precision, Recall, Accuracy, Weighted [F1 Score](https://scikit-learn.org/stable/modules/generated/sklearn.metrics.f1_score.html)\n"
29
 
30
+ #CSV_TEXT = "<p>Please make sure that you upload the CSV in the correct format. Click the link to download a sample CSV!</p> <a href=\"https://huggingface.co/spaces/debayan/ism_2023w/raw/main/example.csv\" download=\"example.csv\">Download CSV</a>"
31
+
32
+
33
+ CSV_TEXT = "<p>Please go to the new url to upload CSV and check leaderboard!</p> [https://726b6c34825b86770e.gradio.live](https://726b6c34825b86770e.gradio.live)"
34
 
35
  METRICS_TAB_TEXT = """
36
  Here you will find details about the multi-class classification metrics and datasets reported in our leaderboard.
 
41
  """
42
 
43
 
44
+
45
+
46
  LAST_UPDATED = "Sep 28th 2023"
47
 
48
 
 
230
  gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
231
  gr.HTML(CSV_TEXT, elem_classes="markdown-text")
232
 
233
+ """
234
 
235
  with gr.Tabs(elem_classes="tab-buttons") as tabs:
236
  with gr.TabItem("πŸ… Leaderboard Phase 1", elem_id="od-benchmark-tab-table-1", id=0):
 
280
  )
281
 
282
 
283
+ """
284
 
285
 
286
 
 
291
 
292
 
293
 
294
+ demo.launch( debug=True,share=True)
295
 
296