Update app.py
Browse files
app.py
CHANGED
|
@@ -56,11 +56,20 @@ def process_audio(audio):
|
|
| 56 |
organized_record = organize_clinical_record(transcription_text)
|
| 57 |
return organized_record.content
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
iface = gr.Interface(
|
| 60 |
fn=process_audio,
|
| 61 |
inputs=gr.Audio(sources=["microphone"], type="filepath"),
|
| 62 |
outputs="text",
|
| 63 |
-
live=
|
|
|
|
|
|
|
| 64 |
)
|
| 65 |
|
| 66 |
iface.launch(auth=[("nati", "nati"), ("alejo", "alejo")])
|
|
|
|
| 56 |
organized_record = organize_clinical_record(transcription_text)
|
| 57 |
return organized_record.content
|
| 58 |
|
| 59 |
+
|
| 60 |
+
theme = gr.themes.Base(
|
| 61 |
+
primary_hue=gr.themes.Color(c100="#fce7f3", c200="#fbcfe8", c300="#f9a8d4", c400="#f472b6", c50="#fdf2f8", c500="#ff4da6", c600="#db2777", c700="#ff299b", c800="#f745b6", c900="#ff38ac", c950="#e1377e"),
|
| 62 |
+
secondary_hue="pink",
|
| 63 |
+
neutral_hue="neutral",
|
| 64 |
+
)
|
| 65 |
+
|
| 66 |
iface = gr.Interface(
|
| 67 |
fn=process_audio,
|
| 68 |
inputs=gr.Audio(sources=["microphone"], type="filepath"),
|
| 69 |
outputs="text",
|
| 70 |
+
live=False,
|
| 71 |
+
concurrency_limit=4,
|
| 72 |
+
theme=theme
|
| 73 |
)
|
| 74 |
|
| 75 |
iface.launch(auth=[("nati", "nati"), ("alejo", "alejo")])
|