Spaces:
Runtime error
Runtime error
| import gradio as gr | |
| from apps.asr import ( | |
| mic_transcribe_interface, | |
| file_transcribe_interface | |
| ) | |
| from apps.object_detection import obj_detection_interface | |
| from apps.image_captioning import img_captioning_interface | |
| from apps.ner import ner_interface | |
| from apps.summarizer import summarizer_interface | |
| app = gr.Blocks() | |
| with app: | |
| gr.TabbedInterface( | |
| [ | |
| mic_transcribe_interface, | |
| file_transcribe_interface, | |
| obj_detection_interface, | |
| img_captioning_interface, | |
| ner_interface, | |
| summarizer_interface | |
| ], | |
| [ | |
| "Transcribe from Microphone", | |
| "Transcribe from Audio File", | |
| "Detect Objects from an Image", | |
| "Generate a Caption for an Image", | |
| "Named Entity Recogntion", | |
| "Summarize Long-Form Text" | |
| ] | |
| ) | |
| app.launch(share=True) |