Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,15 +1,21 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
def generate_text(text):
|
| 4 |
-
|
| 5 |
-
|
| 6 |
|
| 7 |
-
with gr.Blocks() as demo:
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
demo.launch()
|
| 15 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
# def generate_text(text):
|
| 4 |
+
# print('entered here ....')
|
| 5 |
+
# return 'success'
|
| 6 |
|
| 7 |
+
# with gr.Blocks() as demo:
|
| 8 |
+
# input_box = gr.Textbox(label="Enter your input")
|
| 9 |
+
# input_button = gr.Button("Submit")
|
| 10 |
+
# input_output = gr.Textbox(label="Result")
|
| 11 |
|
| 12 |
+
# input_button.click(generate_text, input_box, input_output)
|
| 13 |
+
|
| 14 |
+
# demo.launch()
|
| 15 |
+
|
| 16 |
+
import gradio as gr
|
| 17 |
+
|
| 18 |
+
demo = gr.load("Helsinki-NLP/opus-mt-en-es", src="models")
|
| 19 |
|
| 20 |
demo.launch()
|
| 21 |
|