AashitaK commited on
Commit
895e722
·
verified ·
1 Parent(s): ca2a285

Switched from Interface to Blocks for gradio

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- title = config["chatbot_title"]
35
- 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,4 +98,4 @@ with gr.Blocks() as demo:
98
  submit.click(fn=chatbot, inputs=user_input, outputs=output)
99
 
100
  if __name__ == "__main__":
101
- iface.launch()
 
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()