Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,10 +71,8 @@ def get_completion(prompt, model='gpt-3.5-turbo'):
|
|
| 71 |
)
|
| 72 |
return response.choices[0].message['content']
|
| 73 |
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
with demo:
|
| 77 |
-
title = 'Chat with NP'
|
| 78 |
audio = gr.Audio(source="microphone", type="filepath")
|
| 79 |
|
| 80 |
b1 = gr.Button("Transcribe audio")
|
|
|
|
| 71 |
)
|
| 72 |
return response.choices[0].message['content']
|
| 73 |
|
| 74 |
+
with gr.Blocks() as demo:
|
| 75 |
+
title = "Chat with NP"
|
|
|
|
|
|
|
| 76 |
audio = gr.Audio(source="microphone", type="filepath")
|
| 77 |
|
| 78 |
b1 = gr.Button("Transcribe audio")
|