momenaca commited on
Commit
59d1f62
1 Parent(s): 185124d

update code to make chatbot visible without auth

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -215,15 +215,15 @@ with gr.Blocks(title=f"{demo_name}", css=css, theme=theme) as demo:
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)
220
 
221
- with gr.Column(visible=False) as bloc_3:
222
- textbox_3 = gr.Textbox(
223
- "You are not part of the ESRS Q&A Project, if interested ask access here : https://huggingface.co/ekimetrics-esrsqa"
224
- )
225
 
226
- with gr.Column(visible=False) as bloc_2:
227
  with gr.Tab("ESRS Q&A"):
228
  with gr.Row():
229
  with gr.Column(scale=2):
@@ -260,7 +260,6 @@ with gr.Blocks(title=f"{demo_name}", css=css, theme=theme) as demo:
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(
 
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)
220
 
221
+ # with gr.Column(visible=False) as bloc_3:
222
+ # textbox_3 = gr.Textbox(
223
+ # "You are not part of the ESRS Q&A Project, if interested ask access here : https://huggingface.co/ekimetrics-esrsqa"
224
+ # )
225
 
226
+ with gr.Column(visible=True) as bloc_2:
227
  with gr.Tab("ESRS Q&A"):
228
  with gr.Row():
229
  with gr.Column(scale=2):
 
260
  gr.Markdown("WIP")
261
 
262
  # demo.load(update_visible, inputs=None, outputs=[bloc_1, bloc_2, bloc_3])
 
263
  # login.click(update_visible, inputs=[], outputs=[bloc_1, bloc_2, bloc_3])
264
 
265
  ask.submit(