Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,6 @@ ARTICLE = '<center><img src="https://visitor-badge.glitch.me/badge?page_id=hysts
|
|
25 |
TOKEN = "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"
|
26 |
|
27 |
|
28 |
-
os.listdir("checkpoint")
|
29 |
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es")
|
30 |
|
31 |
def predict(text):
|
@@ -35,7 +34,7 @@ iface = gr.Interface(
|
|
35 |
fn=predict,
|
36 |
inputs='text',
|
37 |
outputs='text',
|
38 |
-
examples=[["
|
39 |
)
|
40 |
|
41 |
iface.launch()
|
|
|
25 |
TOKEN = "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"
|
26 |
|
27 |
|
|
|
28 |
pipe = pipeline("translation", model="Helsinki-NLP/opus-mt-en-es")
|
29 |
|
30 |
def predict(text):
|
|
|
34 |
fn=predict,
|
35 |
inputs='text',
|
36 |
outputs='text',
|
37 |
+
examples=[["".join(os.listdir("checkpoint"))]]
|
38 |
)
|
39 |
|
40 |
iface.launch()
|