Spaces:
Runtime error
Runtime error
fvwjtemlfmyztvgzla
commited on
Commit
•
6254ce6
1
Parent(s):
44f9786
Update app.py
Browse files
app.py
CHANGED
@@ -14,5 +14,5 @@ def fn(text, lang):
|
|
14 |
generated_tokens = model.generate(**encoded_zh)
|
15 |
return tokenizer.batch_decode(generated_tokens, skip_special_tokens=True)
|
16 |
|
17 |
-
demo = gr.Interface(fn=fn, inputs="text",
|
18 |
demo.launch()
|
|
|
14 |
generated_tokens = model.generate(**encoded_zh)
|
15 |
return tokenizer.batch_decode(generated_tokens, skip_special_tokens=True)
|
16 |
|
17 |
+
demo = gr.Interface(fn=fn, inputs=["text", "text"], outputs="text")
|
18 |
demo.launch()
|