Spaces:
Sleeping
Sleeping
Create app.py
Browse filesFirst test commit for testing on phone.
app.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def run_query(query_string: str):
|
| 4 |
+
meal_string = f"Oh you want {query_string}. Go have a think yourself then."
|
| 5 |
+
pass
|
| 6 |
+
|
| 7 |
+
with gr.Blocks() as meal_search:
|
| 8 |
+
gr.Markdown("Start typing below and then click **Run** to see the output.")
|
| 9 |
+
with gr.Row():
|
| 10 |
+
inp = gr.Textbox(placeholder="What sort of meal are you after?")
|
| 11 |
+
out = gr.Textbox()
|
| 12 |
+
btn = gr.Button("Run")
|
| 13 |
+
btn.click(fn=update, inputs=inp, outputs=out)
|
| 14 |
+
|
| 15 |
+
meal_search.launch()
|