Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ def transcribe_and_respond(audio_file, email):
|
|
29 |
|
30 |
# Set up the prompt to get key takeaways
|
31 |
turns = [
|
32 |
-
{'role': 'system', 'content': '
|
33 |
{'role': 'user', 'content': '<|audio|>'}
|
34 |
]
|
35 |
print(f"Initial turns: {turns}")
|
@@ -58,14 +58,14 @@ iface = gr.Interface(
|
|
58 |
fn=transcribe_and_respond,
|
59 |
inputs=[
|
60 |
gr.Audio(sources=["upload", "microphone"], type="filepath"),
|
61 |
-
gr.Textbox(label="Email", placeholder="Enter your email address (optional)")
|
62 |
],
|
63 |
outputs=[
|
64 |
gr.Textbox(label="Transcript"),
|
65 |
gr.File(label="Download Transcript")
|
66 |
],
|
67 |
title="ShukaNotesApp",
|
68 |
-
description="Upload or record your meeting audio,
|
69 |
)
|
70 |
|
71 |
if __name__ == "__main__":
|
|
|
29 |
|
30 |
# Set up the prompt to get key takeaways
|
31 |
turns = [
|
32 |
+
{'role': 'system', 'content': 'You are an exact echo assistant. Output the previous text exactly as given, without any modifications.'},
|
33 |
{'role': 'user', 'content': '<|audio|>'}
|
34 |
]
|
35 |
print(f"Initial turns: {turns}")
|
|
|
58 |
fn=transcribe_and_respond,
|
59 |
inputs=[
|
60 |
gr.Audio(sources=["upload", "microphone"], type="filepath"),
|
61 |
+
# gr.Textbox(label="Email", placeholder="Enter your email address (optional)")
|
62 |
],
|
63 |
outputs=[
|
64 |
gr.Textbox(label="Transcript"),
|
65 |
gr.File(label="Download Transcript")
|
66 |
],
|
67 |
title="ShukaNotesApp",
|
68 |
+
description="Upload or record your meeting audio, and download the transcript."
|
69 |
)
|
70 |
|
71 |
if __name__ == "__main__":
|