Spaces:
Runtime error
Runtime error
Upload flow.py with huggingface_hub
Browse files
flow.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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(
|
10 |
+
["San Francisco", "New York", "Chicago", "Los Angeles", "Boston"],
|
11 |
+
allow_custom_value=True,
|
12 |
+
),
|
13 |
+
gr.Dropdown(
|
14 |
+
["board games", "cooking", "hiking", "reading", "writing"],
|
15 |
+
allow_custom_value=True,
|
16 |
+
),
|
17 |
+
],
|
18 |
+
)
|
19 |
+
|
20 |
+
if __name__ == "__main__":
|
21 |
+
flow.launch()
|