akhaliq HF staff commited on
Commit
4987cbc
1 Parent(s): 243ea59

fix examples

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -59,10 +59,9 @@ def main():
59
  gr.Markdown(NOTES)
60
  gr.Markdown(FOOTER)
61
 
62
- with open('samples.txt') as f:
63
- samples = [[line.strip()] for line in f.readlines()]
64
 
65
- examples = gr.Examples(examples=samples,
 
66
  fn=model.run_with_translation,
67
  inputs=[text,translate,seed,only_first_stage],
68
  outputs=[translated_text,result_video,result_gallery],
 
59
  gr.Markdown(NOTES)
60
  gr.Markdown(FOOTER)
61
 
 
 
62
 
63
+ examples = gr.Examples(examples=[["骑滑板的皮卡丘",True,1234,True],
64
+ ["a cat playing chess",True,1253,True]]
65
  fn=model.run_with_translation,
66
  inputs=[text,translate,seed,only_first_stage],
67
  outputs=[translated_text,result_video,result_gallery],