Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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"
|
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
|
|
|
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
|