feng2022 commited on
Commit
9793e97
1 Parent(s): 899b968

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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=[["Time-TravelRephotography"]]
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()