momenaca commited on
Commit
185124d
·
1 Parent(s): 18c4978

fix tmp by disabling HF login until further exploration

Browse files
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -211,9 +211,9 @@ What do you want to learn ?
211
 
212
 
213
  with gr.Blocks(title=f"{demo_name}", css=css, theme=theme) as demo:
214
- with gr.Row():
215
- with gr.Column(scale=1):
216
- gr.LoginButton()
217
 
218
  with gr.Column() as bloc_1:
219
  textbox_1 = gr.Textbox("You are not logged to Hugging Face !", show_label=False)
@@ -259,7 +259,10 @@ with gr.Blocks(title=f"{demo_name}", css=css, theme=theme) as demo:
259
  with gr.Column(scale=1):
260
  gr.Markdown("WIP")
261
 
262
- demo.load(update_visible, inputs=None, outputs=[bloc_1, bloc_2, bloc_3])
 
 
 
263
  ask.submit(
264
  fn=chat,
265
  inputs=[
 
211
 
212
 
213
  with gr.Blocks(title=f"{demo_name}", css=css, theme=theme) as demo:
214
+ # with gr.Row():
215
+ # with gr.Column(scale=1):
216
+ # login = gr.LoginButton()
217
 
218
  with gr.Column() as bloc_1:
219
  textbox_1 = gr.Textbox("You are not logged to Hugging Face !", show_label=False)
 
259
  with gr.Column(scale=1):
260
  gr.Markdown("WIP")
261
 
262
+ # demo.load(update_visible, inputs=None, outputs=[bloc_1, bloc_2, bloc_3])
263
+
264
+ # login.click(update_visible, inputs=[], outputs=[bloc_1, bloc_2, bloc_3])
265
+
266
  ask.submit(
267
  fn=chat,
268
  inputs=[