Update app.py
Browse files
app.py
CHANGED
|
@@ -120,7 +120,7 @@ def transcribe(audio, history_type):
|
|
| 120 |
|
| 121 |
note_transcript = response.choices[0].message.content
|
| 122 |
print(note_transcript)
|
| 123 |
-
return [note_transcript, num_words,
|
| 124 |
|
| 125 |
#Define Gradio Interface
|
| 126 |
my_inputs = [
|
|
@@ -130,9 +130,9 @@ my_inputs = [
|
|
| 130 |
|
| 131 |
ui = gr.Interface(fn=transcribe,
|
| 132 |
inputs=my_inputs,
|
| 133 |
-
outputs=[
|
|
|
|
| 134 |
gr.Number(label="Audio Word Count"),
|
| 135 |
-
RichTextbox(),
|
| 136 |
gr.Number(label=".mp3 MB")]
|
| 137 |
)
|
| 138 |
|
|
|
|
| 120 |
|
| 121 |
note_transcript = response.choices[0].message.content
|
| 122 |
print(note_transcript)
|
| 123 |
+
return [note_transcript, num_words, mp3_megabytes]
|
| 124 |
|
| 125 |
#Define Gradio Interface
|
| 126 |
my_inputs = [
|
|
|
|
| 130 |
|
| 131 |
ui = gr.Interface(fn=transcribe,
|
| 132 |
inputs=my_inputs,
|
| 133 |
+
outputs=[RichTextbox(label="Your Note (GPT 3.5 Turbo)", show_copy_button=True),
|
| 134 |
+
#gr.Textbox(label="Your Note (GPT 3.5 Turbo)", show_copy_button=True),
|
| 135 |
gr.Number(label="Audio Word Count"),
|
|
|
|
| 136 |
gr.Number(label=".mp3 MB")]
|
| 137 |
)
|
| 138 |
|