Spaces:
Runtime error
Runtime error
Upload flow.py with huggingface_hub
Browse files
flow.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
import groovy as gv
|
| 4 |
+
|
| 5 |
+
flow = gv.Flow(
|
| 6 |
+
# task="Find me some events in San Francisco related to board games using Meetup.",
|
| 7 |
+
task="Find me some events in {} related to {} using Meetup.",
|
| 8 |
+
inputs=[
|
| 9 |
+
gr.Dropdown(["San Francisco", "New York", "Chicago", "Los Angeles", "Boston"], allow_custom_value=True),
|
| 10 |
+
gr.Dropdown(["board games", "cooking", "hiking", "reading", "writing"], allow_custom_value=True),
|
| 11 |
+
],
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
if __name__ == "__main__":
|
| 15 |
+
flow.launch()
|