ygauravyy commited on
Commit
0f80afc
1 Parent(s): d84a497

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -13
app.py CHANGED
@@ -1,15 +1,7 @@
1
- import gradio as gr
2
 
3
- def predict(audio_file_pth, agree):
4
- return "Test response", None
5
 
6
- with gr.Blocks() as demo:
7
- gr.Markdown("# Test Application")
8
- audio_input = gr.Audio(source="microphone", type="filepath", label="Record Your Voice")
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!"}