AbenzaFran commited on
Commit
fd2e134
·
verified ·
1 Parent(s): c428351

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -14
app.py CHANGED
@@ -48,20 +48,19 @@ def predict(message, history, selected_agent):
48
  # Define the Gradio interface using Blocks for layout
49
  def app_interface():
50
  with gr.Blocks() as demo:
51
- with gr.Row():
52
- dropdown = gr.Dropdown(
53
- choices=list(extractor_agents.keys()),
54
- value="Solution Specifier A",
55
- label="Choose Extractor Agent",
56
- interactive=True,
57
- )
58
- with gr.Row():
59
- chat = gr.ChatInterface(
60
- fn=predict,
61
- additional_inputs=[dropdown],
62
- title="Solution Specifier Chat",
63
- description="Test with different solution specifiers"
64
- )
65
  return demo
66
 
67
  # Launch the app
 
48
  # Define the Gradio interface using Blocks for layout
49
  def app_interface():
50
  with gr.Blocks() as demo:
51
+ dropdown = gr.Dropdown(
52
+ choices=list(extractor_agents.keys()),
53
+ value="Solution Specifier A",
54
+ label="Choose Extractor Agent",
55
+ interactive=True,
56
+ )
57
+
58
+ chat = gr.ChatInterface(
59
+ fn=predict,
60
+ additional_inputs=[dropdown],
61
+ title="Solution Specifier Chat",
62
+ description="Test with different solution specifiers"
63
+ )
 
64
  return demo
65
 
66
  # Launch the app