Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,7 @@
|
|
1 |
-
|
2 |
|
3 |
-
|
4 |
-
return "Test response", None
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
tos_checkbox = gr.Checkbox(label="Agree to Terms & Conditions", value=False)
|
10 |
-
submit_button = gr.Button("Send")
|
11 |
-
info_output = gr.Textbox(label="Info", interactive=False)
|
12 |
-
audio_output = gr.Audio(label="Response", interactive=False)
|
13 |
-
submit_button.click(predict, inputs=[audio_input, tos_checkbox], outputs=[info_output, audio_output])
|
14 |
-
|
15 |
-
demo.launch()
|
|
|
1 |
+
from fastapi import FastAPI
|
2 |
|
3 |
+
app = FastAPI()
|
|
|
4 |
|
5 |
+
@app.get("/")
|
6 |
+
def greet_json():
|
7 |
+
return {"Hello": "World!"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|