Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -80,14 +80,14 @@ with gr.Blocks() as face:
|
|
80 |
with gr.Column():
|
81 |
audio = gr.Audio(source="microphone", type="filepath")
|
82 |
promptText = gr.Textbox(lines=15, placeholder="Enter a prompt here"),
|
83 |
-
dropChoice = gr.Dropdown(["text-ada-001", "text-davinci-002", "text-davinci-003", "gpt-3.5-turbo"], label="Model"),
|
84 |
sliderChoice = gr.Slider(minimum=0.0, maximum=1.0, default=0.8, step=0.1, label="Temperature")
|
85 |
transcribe_btn = gr.Button(value="Transcribe")
|
86 |
with gr.Column():
|
87 |
script = gr.Textbox(label="text...")
|
88 |
options = gr.Textbox(label="predictions...")
|
89 |
#transcribe_btn.click(inference)
|
90 |
-
transcribe_btn.click(fn=inference, inputs=[audio,
|
91 |
#examples = gr.Examples(examples=["Sedan, Truck, SUV", "Dalmaion, Shepherd, Lab, Mutt"])
|
92 |
|
93 |
face.launch()
|
|
|
80 |
with gr.Column():
|
81 |
audio = gr.Audio(source="microphone", type="filepath")
|
82 |
promptText = gr.Textbox(lines=15, placeholder="Enter a prompt here"),
|
83 |
+
dropChoice = gr.Dropdown(choices=["text-ada-001", "text-davinci-002", "text-davinci-003", "gpt-3.5-turbo"], label="Model"),
|
84 |
sliderChoice = gr.Slider(minimum=0.0, maximum=1.0, default=0.8, step=0.1, label="Temperature")
|
85 |
transcribe_btn = gr.Button(value="Transcribe")
|
86 |
with gr.Column():
|
87 |
script = gr.Textbox(label="text...")
|
88 |
options = gr.Textbox(label="predictions...")
|
89 |
#transcribe_btn.click(inference)
|
90 |
+
transcribe_btn.click(fn=inference, inputs=[audio, dropChoice], outputs=[script, options])
|
91 |
#examples = gr.Examples(examples=["Sedan, Truck, SUV", "Dalmaion, Shepherd, Lab, Mutt"])
|
92 |
|
93 |
face.launch()
|