Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,15 +48,6 @@ def translate(text):
|
|
| 48 |
result = translation_pipeline(text)
|
| 49 |
return result[0]['translation_text']
|
| 50 |
|
| 51 |
-
|
| 52 |
-
gr.Interface(
|
| 53 |
-
translate,
|
| 54 |
-
[
|
| 55 |
-
gr.components.Textbox(label="Text"),
|
| 56 |
-
],
|
| 57 |
-
["text"],
|
| 58 |
-
).launch()
|
| 59 |
-
|
| 60 |
with gr.Blocks() as demo:
|
| 61 |
gr.Markdown(
|
| 62 |
""" # <center>🥳💬💕 - Stable Diffusion,随时随地,想画就画!</center>
|
|
|
|
| 48 |
result = translation_pipeline(text)
|
| 49 |
return result[0]['translation_text']
|
| 50 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 51 |
with gr.Blocks() as demo:
|
| 52 |
gr.Markdown(
|
| 53 |
""" # <center>🥳💬💕 - Stable Diffusion,随时随地,想画就画!</center>
|