Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,14 +58,10 @@ prompt_types = [
|
|
| 58 |
"Multi-Modal Prompt",
|
| 59 |
"Augmented Prompt"
|
| 60 |
]
|
| 61 |
-
with gr.
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 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)
|