Spaces:
Sleeping
Sleeping
Switched from Interface to Blocks for gradio
Browse files
app.py
CHANGED
|
@@ -31,8 +31,8 @@ with open('config/gradio_config.json', 'r') as config_file:
|
|
| 31 |
if not config:
|
| 32 |
raise ValueError("Failed to load the configuration file.")
|
| 33 |
# Extract the configuration parameters
|
| 34 |
-
|
| 35 |
-
|
| 36 |
chatbot_input_label = config["chatbot_input_label"]
|
| 37 |
chatbot_input_placeholder = config["chatbot_input_placeholder"]
|
| 38 |
chatbot_output_label = config["chatbot_output_label"]
|
|
@@ -98,4 +98,4 @@ with gr.Blocks() as demo:
|
|
| 98 |
submit.click(fn=chatbot, inputs=user_input, outputs=output)
|
| 99 |
|
| 100 |
if __name__ == "__main__":
|
| 101 |
-
|
|
|
|
| 31 |
if not config:
|
| 32 |
raise ValueError("Failed to load the configuration file.")
|
| 33 |
# Extract the configuration parameters
|
| 34 |
+
chatbot_title = config["chatbot_title"]
|
| 35 |
+
chatbot_description = config["chatbot_description"]
|
| 36 |
chatbot_input_label = config["chatbot_input_label"]
|
| 37 |
chatbot_input_placeholder = config["chatbot_input_placeholder"]
|
| 38 |
chatbot_output_label = config["chatbot_output_label"]
|
|
|
|
| 98 |
submit.click(fn=chatbot, inputs=user_input, outputs=output)
|
| 99 |
|
| 100 |
if __name__ == "__main__":
|
| 101 |
+
demo.launch()
|