Spaces:
Runtime error
Runtime error
Upload 2 files
Browse files- app.py +22 -0
- requirements.txt +1 -0
app.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
import gradio as gr
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
read_aloud_demo = gr.load(
|
| 6 |
+
"arslanarjumand/ReadAloud",
|
| 7 |
+
src="spaces",
|
| 8 |
+
hf_token=API_KEY
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
reapeat_sentence_demo = gr.load(
|
| 12 |
+
"arslanarjumand/RepeatSentence",
|
| 13 |
+
src="spaces",
|
| 14 |
+
hf_token=API_KEY
|
| 15 |
+
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
demo = gr.TabbedInterface([read_aloud_demo, reapeat_sentence_demo], ["Read Aloud", "Repeat Sentence"])
|
| 19 |
+
|
| 20 |
+
if __name__ == "__main__":
|
| 21 |
+
demo.launch()
|
| 22 |
+
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
gradio
|