Polarisailabs commited on
Commit
a1f850c
·
verified ·
1 Parent(s): 65f8c3e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -5
app.py CHANGED
@@ -59,11 +59,18 @@ prompt_types = [
59
  "Augmented Prompt"
60
  ]
61
 
62
- with gr.Blocks() as demo:
 
 
 
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(label="Result")
66
- gr.Interface(fn=chatbot, inputs=[inputs, dropdown], outputs=outputs,theme=gr.themes.Default(primary_hue="sky")
67
- )
 
 
 
 
68
 
69
  demo.launch(share=True)
 
59
  "Augmented Prompt"
60
  ]
61
 
62
+
63
+
64
+ with gr.Interface(
65
+ fn=chatbot,
66
  dropdown = gr.Dropdown(choices=prompt_types, label="Select Prompt Type", type="value")
67
+ inputs=gr.Textbox(lines=7, label="Prompt : Try - What is the value of pi")
68
+ outputs=gr.Textbox(lines=10,label="Response:"),
69
+ title="",
70
+ description="",
71
+ theme=gr.themes.Default(primary_hue="sky")
72
+ ) as demo:
73
+ demo.launch()
74
+
75
 
76
  demo.launch(share=True)