Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -121,9 +121,9 @@ with gr.Blocks() as face:
|
|
121 |
convoState = gr.State([""])
|
122 |
with gr.Column():
|
123 |
audio = gr.Audio(source="microphone", type="filepath")
|
124 |
-
promptText = gr.Textbox(lines=15, placeholder="Enter a prompt here")
|
125 |
-
dropChoice = gr.Dropdown(choices=["text-ada-001", "text-davinci-002", "text-davinci-003", "gpt-3.5-turbo"], label="Model")
|
126 |
-
sliderChoice = gr.Slider(minimum=0.0, maximum=1.0, default=0.8, step=0.1, label="Temperature")
|
127 |
transcribe_btn = gr.Button(value="Transcribe")
|
128 |
with gr.Column():
|
129 |
script = gr.Textbox(label="Transcribed text")
|
@@ -147,7 +147,7 @@ with gr.Blocks() as face:
|
|
147 |
#options = gr.Radio(choices=["One", "Two", "Three", "Four", "Five"])
|
148 |
latestConvo = gr.Textbox(label="Running conversation")
|
149 |
#transcribe_btn.click(inference)
|
150 |
-
transcribe_btn.click(fn=inference, inputs=[audio,
|
151 |
option1.click(fn=appendPrediction, inputs=[option1, convoState], outputs=[latestConvo])
|
152 |
option2.click(fn=appendPrediction, inputs=[option2, convoState], outputs=[latestConvo])
|
153 |
option3.click(fn=appendPrediction, inputs=[option3, convoState], outputs=[latestConvo])
|
|
|
121 |
convoState = gr.State([""])
|
122 |
with gr.Column():
|
123 |
audio = gr.Audio(source="microphone", type="filepath")
|
124 |
+
#promptText = gr.Textbox(lines=15, placeholder="Enter a prompt here")
|
125 |
+
#dropChoice = gr.Dropdown(choices=["text-ada-001", "text-davinci-002", "text-davinci-003", "gpt-3.5-turbo"], label="Model")
|
126 |
+
#sliderChoice = gr.Slider(minimum=0.0, maximum=1.0, default=0.8, step=0.1, label="Temperature")
|
127 |
transcribe_btn = gr.Button(value="Transcribe")
|
128 |
with gr.Column():
|
129 |
script = gr.Textbox(label="Transcribed text")
|
|
|
147 |
#options = gr.Radio(choices=["One", "Two", "Three", "Four", "Five"])
|
148 |
latestConvo = gr.Textbox(label="Running conversation")
|
149 |
#transcribe_btn.click(inference)
|
150 |
+
transcribe_btn.click(fn=inference, inputs=[audio, convoState], outputs=[script, option1, option2, option3, option4, option5, latestConvo])
|
151 |
option1.click(fn=appendPrediction, inputs=[option1, convoState], outputs=[latestConvo])
|
152 |
option2.click(fn=appendPrediction, inputs=[option2, convoState], outputs=[latestConvo])
|
153 |
option3.click(fn=appendPrediction, inputs=[option3, convoState], outputs=[latestConvo])
|