Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -240,7 +240,7 @@ text_to_image.enable_attention_slicing()
|
|
| 240 |
text_to_image.safety_checker = None
|
| 241 |
text_to_image.scheduler = DPMSolverMultistepScheduler.from_config(text_to_image.scheduler.config)
|
| 242 |
|
| 243 |
-
# Load question-answering model
|
| 244 |
qa_pipeline = pipeline("question-answering", model="distilbert-base-uncased-distilled-squad")
|
| 245 |
|
| 246 |
# Preprocess audio file into NumPy array
|
|
@@ -355,3 +355,4 @@ iface.launch(debug=True, share=True)
|
|
| 355 |
|
| 356 |
|
| 357 |
|
|
|
|
|
|
| 240 |
text_to_image.safety_checker = None
|
| 241 |
text_to_image.scheduler = DPMSolverMultistepScheduler.from_config(text_to_image.scheduler.config)
|
| 242 |
|
| 243 |
+
# Load question-answering model (DistilBERT for factual answers)
|
| 244 |
qa_pipeline = pipeline("question-answering", model="distilbert-base-uncased-distilled-squad")
|
| 245 |
|
| 246 |
# Preprocess audio file into NumPy array
|
|
|
|
| 355 |
|
| 356 |
|
| 357 |
|
| 358 |
+
|