Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ with gr.Blocks() as demo:
|
|
54 |
print(credentials)
|
55 |
@gr.render(inputs=credentials)
|
56 |
def app(app_credentials):
|
57 |
-
if app_credentials == "
|
58 |
gr.ChatInterface(
|
59 |
respond,
|
60 |
additional_inputs=[
|
@@ -69,6 +69,7 @@ with gr.Blocks() as demo:
|
|
69 |
# label="Top-p (nucleus sampling)",
|
70 |
# ),
|
71 |
],
|
|
|
72 |
)
|
73 |
else:
|
74 |
password = gr.Textbox(placeholder="Provide password...")
|
|
|
54 |
print(credentials)
|
55 |
@gr.render(inputs=credentials)
|
56 |
def app(app_credentials):
|
57 |
+
if app_credentials == getenv("PASSWORD"):
|
58 |
gr.ChatInterface(
|
59 |
respond,
|
60 |
additional_inputs=[
|
|
|
69 |
# label="Top-p (nucleus sampling)",
|
70 |
# ),
|
71 |
],
|
72 |
+
chatbot=gr.Chatbot(height=700)
|
73 |
)
|
74 |
else:
|
75 |
password = gr.Textbox(placeholder="Provide password...")
|