Spaces:
Runtime error
Runtime error
Commit
·
579282f
1
Parent(s):
de3e5d5
changing requrirements.txt to include torchaudio and decouple
Browse files- app.py +7 -0
- requirements.txt +3 -0
app.py
CHANGED
|
@@ -1,12 +1,19 @@
|
|
| 1 |
# Welcome to Team Tonic's MultiMed
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
import requests
|
| 5 |
import json
|
| 6 |
from decouple import Config
|
|
|
|
| 7 |
|
| 8 |
config = Config('.env')
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
def process_image_with_openai(image):
|
| 12 |
image_data = convert_image_to_required_format(image)
|
|
|
|
| 1 |
# Welcome to Team Tonic's MultiMed
|
| 2 |
|
| 3 |
+
import os
|
| 4 |
+
import torch
|
| 5 |
+
import torchaudio
|
| 6 |
import gradio as gr
|
| 7 |
import requests
|
| 8 |
import json
|
| 9 |
from decouple import Config
|
| 10 |
+
from transformers import AutoProcessor, SeamlessM4TModel
|
| 11 |
|
| 12 |
config = Config('.env')
|
| 13 |
|
| 14 |
+
DEFAULT_TARGET_LANGUAGE = "English"
|
| 15 |
+
AUDIO_SAMPLE_RATE = 16000.0
|
| 16 |
+
MAX_INPUT_AUDIO_LENGTH = 60 # in seconds
|
| 17 |
|
| 18 |
def process_image_with_openai(image):
|
| 19 |
image_data = convert_image_to_required_format(image)
|
requirements.txt
CHANGED
|
@@ -1,2 +1,5 @@
|
|
| 1 |
python-decouple
|
| 2 |
gradio
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
python-decouple
|
| 2 |
gradio
|
| 3 |
+
git+https://github.com/huggingface/transformers
|
| 4 |
+
torchaudio==2.0.2
|
| 5 |
+
sentencepiece
|