akhaliq HF staff commited on
Commit
ae8beb2
1 Parent(s): 19dbe8c
Files changed (1) hide show
  1. app.py +11 -7
app.py CHANGED
@@ -44,13 +44,8 @@ def main():
44
  visible=not only_first_stage)
45
  run_button = gr.Button('Run')
46
 
47
- with open('samples.txt') as f:
48
- samples = [[line.strip()] for line in f.readlines()]
49
- examples = gr.Examples(examples=samples,
50
- fn=model.run_with_translation,
51
- inputs=[text,translate,seed,only_first_stage],
52
- outputs=[translated_text,result_video,result_gallery],
53
- cache_examples=True)
54
 
55
  with gr.Column():
56
  with gr.Group():
@@ -63,6 +58,15 @@ def main():
63
 
64
  gr.Markdown(NOTES)
65
  gr.Markdown(FOOTER)
 
 
 
 
 
 
 
 
 
66
 
67
  run_button.click(fn=model.run_with_translation,
68
  inputs=[
 
44
  visible=not only_first_stage)
45
  run_button = gr.Button('Run')
46
 
47
+
48
+
 
 
 
 
 
49
 
50
  with gr.Column():
51
  with gr.Group():
 
58
 
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],
69
+ cache_examples=True)
70
 
71
  run_button.click(fn=model.run_with_translation,
72
  inputs=[