Spaces:
Runtime error
Runtime error
update demo
Browse files
app.py
CHANGED
@@ -54,9 +54,6 @@ if __name__ == "__main__":
|
|
54 |
}
|
55 |
|
56 |
with gr.Blocks() as demo:
|
57 |
-
scenario = "Example Scenario"
|
58 |
-
output_text = gr.Text(label="Click Result")
|
59 |
-
|
60 |
######## Introduction for the demo
|
61 |
with gr.Column():
|
62 |
gr.Markdown("""
|
@@ -78,7 +75,8 @@ if __name__ == "__main__":
|
|
78 |
with gr.Column(scale=2):
|
79 |
gr.Image(value=img_path)
|
80 |
scenario_button = gr.Button(scenario)
|
81 |
-
scenario_button.click(fn=lambda x=scenario: scenario_button_clicked(x), inputs=[]
|
|
|
82 |
|
83 |
######## Input OpenAI API Key and display initialization result
|
84 |
with gr.Row():
|
@@ -100,5 +98,4 @@ if __name__ == "__main__":
|
|
100 |
query_text.submit(add_text, inputs=[state, query_text], outputs=[state, chatbot])
|
101 |
query_text.submit(lambda: "", inputs=None, outputs=query_text)
|
102 |
|
103 |
-
demo.launch(share=True)
|
104 |
-
|
|
|
54 |
}
|
55 |
|
56 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
57 |
######## Introduction for the demo
|
58 |
with gr.Column():
|
59 |
gr.Markdown("""
|
|
|
75 |
with gr.Column(scale=2):
|
76 |
gr.Image(value=img_path)
|
77 |
scenario_button = gr.Button(scenario)
|
78 |
+
scenario_button.click(fn=lambda x=scenario: scenario_button_clicked(x), inputs=[])
|
79 |
+
# scenario_button.click(fn=lambda x=scenario: scenario_button_clicked(x), inputs=[], outputs=[output_text])
|
80 |
|
81 |
######## Input OpenAI API Key and display initialization result
|
82 |
with gr.Row():
|
|
|
98 |
query_text.submit(add_text, inputs=[state, query_text], outputs=[state, chatbot])
|
99 |
query_text.submit(lambda: "", inputs=None, outputs=query_text)
|
100 |
|
101 |
+
demo.launch(share=True)
|
|