m7n commited on
Commit
1ef8927
·
1 Parent(s): 16b5bea

remove explicit auth?

Browse files
Files changed (2) hide show
  1. README.md +3 -3
  2. app.py +3 -3
README.md CHANGED
@@ -1,15 +1,15 @@
1
  ---
2
  title: Gradio Fastapi Static Server
3
  emoji: 😻
4
- colorFrom: blue
5
  colorTo: yellow
6
  sdk: gradio
7
  sdk_version: 5.15.0
8
  app_file: app.py
9
  pinned: false
10
- hf_oauth: true
11
  # optional, default duration is 8 hours/480 minutes. Max duration is 30 days/43200 minutes.
12
- hf_oauth_expiration_minutes: 43200
13
  preload_from_hub:
14
  - m7n/discipline-tuned_specter_2_024 100k_filtered_OA_sample_cluster_and_positions_supervised.pkl
15
  - m7n/discipline-tuned_specter_2_024 umap_mapper_250k_random_OA_discipline_tuned_specter_2_params.pkl
 
1
  ---
2
  title: Gradio Fastapi Static Server
3
  emoji: 😻
4
+ colorFrom: indigo
5
  colorTo: yellow
6
  sdk: gradio
7
  sdk_version: 5.15.0
8
  app_file: app.py
9
  pinned: false
10
+ # hf_oauth: true
11
  # optional, default duration is 8 hours/480 minutes. Max duration is 30 days/43200 minutes.
12
+ # hf_oauth_expiration_minutes: 43200
13
  preload_from_hub:
14
  - m7n/discipline-tuned_specter_2_024 100k_filtered_OA_sample_cluster_and_positions_supervised.pkl
15
  - m7n/discipline-tuned_specter_2_024 umap_mapper_250k_random_OA_discipline_tuned_specter_2_params.pkl
app.py CHANGED
@@ -453,7 +453,6 @@ def predict(text_input, sample_size_slider, reduce_sample_checkbox, sample_reduc
453
  ]
454
 
455
 
456
- predict.zerogpu = True
457
 
458
  theme = gr.themes.Monochrome(
459
  font=[gr.themes.GoogleFont("Roboto Condensed"), "ui-sans-serif", "system-ui", "sans-serif"],
@@ -495,8 +494,6 @@ with gr.Blocks(theme=theme, css="""
495
  </div>
496
  """)
497
 
498
- gr.LoginButton()
499
-
500
 
501
  with gr.Row():
502
  with gr.Column(scale=1):
@@ -642,6 +639,9 @@ with gr.Blocks(theme=theme, css="""
642
  queue=False # Important to make the button hide immediately
643
  )
644
 
 
 
 
645
  # Mount and run app
646
  app = gr.mount_gradio_app(app, demo, path="/",ssr_mode=False)
647
 
 
453
  ]
454
 
455
 
 
456
 
457
  theme = gr.themes.Monochrome(
458
  font=[gr.themes.GoogleFont("Roboto Condensed"), "ui-sans-serif", "system-ui", "sans-serif"],
 
494
  </div>
495
  """)
496
 
 
 
497
 
498
  with gr.Row():
499
  with gr.Column(scale=1):
 
639
  queue=False # Important to make the button hide immediately
640
  )
641
 
642
+
643
+ predict.zerogpu = True
644
+
645
  # Mount and run app
646
  app = gr.mount_gradio_app(app, demo, path="/",ssr_mode=False)
647