Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,6 @@ def load_qa_model():
|
|
56 |
except Exception as e:
|
57 |
logger.error(f"Failed to load Q&A model: {str(e)}")
|
58 |
return None
|
59 |
-
|
60 |
|
61 |
# def load_qa_model():
|
62 |
# """Load question-answering model"""
|
@@ -124,7 +123,7 @@ def process_audio(audio_file, translate=False):
|
|
124 |
# raise gr.Error(f"Processing failed: {str(e)}")
|
125 |
|
126 |
|
127 |
-
@spaces.GPU(duration=180)
|
128 |
# def summarize_text(text):
|
129 |
# """Summarize text"""
|
130 |
# try:
|
|
|
56 |
except Exception as e:
|
57 |
logger.error(f"Failed to load Q&A model: {str(e)}")
|
58 |
return None
|
|
|
59 |
|
60 |
# def load_qa_model():
|
61 |
# """Load question-answering model"""
|
|
|
123 |
# raise gr.Error(f"Processing failed: {str(e)}")
|
124 |
|
125 |
|
126 |
+
# @spaces.GPU(duration=180)
|
127 |
# def summarize_text(text):
|
128 |
# """Summarize text"""
|
129 |
# try:
|