Polarisailabs commited on
Commit
6671a38
·
verified ·
1 Parent(s): a587a96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -10
app.py CHANGED
@@ -58,14 +58,10 @@ prompt_types = [
58
  "Multi-Modal Prompt",
59
  "Augmented Prompt"
60
  ]
61
- with gr.Interface(
62
- fn=chatbot,
63
- dropdown = gr.Dropdown(choices=prompt_types, label="Select Prompt Type", type="value"),
64
- inputs=gr.Textbox(lines=7, label="Prompt : Try - What is the value of pi"),
65
- outputs=gr.Textbox(lines=10,label="Response:"),
66
- title="",
67
- description="",
68
- theme=gr.themes.Default(primary_hue="sky")
69
- ) as demo:
70
- demo.launch()
71
  demo.launch(share=True)
 
58
  "Multi-Modal Prompt",
59
  "Augmented Prompt"
60
  ]
61
+ with gr.Blocks(theme=gr.themes.Default(primary_hue="sky")) as demo:
62
+ dropdown = gr.Dropdown(choices=prompt_types, label="Select Prompt Type", type="value")
63
+ inputs = gr.Textbox(lines=7, label="Prompt : Try - What is the value of pi")
64
+ outputs = gr.Textbox(label="Result")
65
+ gr.Interface(fn=chatbot, inputs=[inputs, dropdown], outputs=outputs,theme=gr.themes.Default(primary_hue="sky")
66
+ ) demo.launch()
 
 
 
 
67
  demo.launch(share=True)