alphahg commited on
Commit
a1ac94b
β€’
1 Parent(s): 4cabd51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -155,13 +155,13 @@ def translate_styleonly(text):
155
  return translated
156
 
157
  # %%
158
- interface1 = gr.Interface(fn=translate, inputs=["text", gr.Radio(["μ˜ν•œ", "ν•œμ˜"], value='μ˜ν•œ'), 'checkbox'], outputs="text", batch=True, max_batch_size=8)
159
- interface2 = gr.Interface(fn=translate_with_sum, inputs=["text", gr.Radio(["μ˜ν•œ", "ν•œμ˜"], value='μ˜ν•œ')], outputs="text", batch=True, max_batch_size=8)
160
  parallel_interface = gr.Parallel(interface1, interface2)
161
 
162
- summarize_interface = gr.Interface(fn=summarize, inputs=["text", gr.Radio(["Korean", "English"], value='Korean')], outputs="text", batch=True, max_batch_size=8)
163
- style_interface = gr.Interface(fn=translate_styleonly, inputs=["text"], outputs="text", batch=True, max_batch_size=8)
164
- #%%
165
  demo = gr.TabbedInterface([parallel_interface, summarize_interface, style_interface], ['λ²ˆμ—­ 및 μš”μ•½', 'μš”μ•½', 'μŠ€νƒ€μΌ λ²ˆμ—­'], css="footer {visibility: hidden}") # 'μš”μ•½'
166
  demo.queue()
167
  demo.launch() # Share the demo
 
155
  return translated
156
 
157
  # %%
158
+ interface1 = gr.Interface(fn=translate, inputs=["text", gr.Radio(["μ˜ν•œ", "ν•œμ˜"], value='μ˜ν•œ'), 'checkbox'], outputs="text")
159
+ interface2 = gr.Interface(fn=translate_with_sum, inputs=["text", gr.Radio(["μ˜ν•œ", "ν•œμ˜"], value='μ˜ν•œ')], outputs="text")
160
  parallel_interface = gr.Parallel(interface1, interface2)
161
 
162
+ summarize_interface = gr.Interface(fn=summarize, inputs=["text", gr.Radio(["Korean", "English"], value='Korean')], outputs="text")
163
+ style_interface = gr.Interface(fn=translate_styleonly, inputs=["text"], outputs="text")
164
+
165
  demo = gr.TabbedInterface([parallel_interface, summarize_interface, style_interface], ['λ²ˆμ—­ 및 μš”μ•½', 'μš”μ•½', 'μŠ€νƒ€μΌ λ²ˆμ—­'], css="footer {visibility: hidden}") # 'μš”μ•½'
166
  demo.queue()
167
  demo.launch() # Share the demo