Spaces:
Build error
Build error
Fix dataset name
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ import torch
|
|
| 8 |
|
| 9 |
directory = 'av-generation/'
|
| 10 |
|
| 11 |
-
def predict(title, approach='End2End', base_model='t5-small', dataset='
|
| 12 |
if approach == "End2End":
|
| 13 |
model_id = directory + f"{base_model.lower()}-{approach.lower()}-{dataset.lower()}"
|
| 14 |
model = TransformersAVG(model_id)
|
|
|
|
| 8 |
|
| 9 |
directory = 'av-generation/'
|
| 10 |
|
| 11 |
+
def predict(title, approach='End2End', base_model='t5-small', dataset='AE-110K', num_beams=3):
|
| 12 |
if approach == "End2End":
|
| 13 |
model_id = directory + f"{base_model.lower()}-{approach.lower()}-{dataset.lower()}"
|
| 14 |
model = TransformersAVG(model_id)
|