Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,11 +59,18 @@ prompt_types = [
|
|
| 59 |
"Augmented Prompt"
|
| 60 |
]
|
| 61 |
|
| 62 |
-
|
|
|
|
|
|
|
|
|
|
| 63 |
dropdown = gr.Dropdown(choices=prompt_types, label="Select Prompt Type", type="value")
|
| 64 |
-
inputs
|
| 65 |
-
outputs
|
| 66 |
-
|
| 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)
|