Kevin676 commited on
Commit
370c8bd
·
1 Parent(s): b916a45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -9
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>