hey
Browse files
app.py
CHANGED
@@ -13,5 +13,5 @@ def Generate(context):
|
|
13 |
generated_text = model.generate(context_tokens, max_new_tokens=10)[0].tolist()
|
14 |
return tokenizer._decode(generated_text)
|
15 |
|
16 |
-
iface = gr.
|
17 |
iface.launch()
|
|
|
13 |
generated_text = model.generate(context_tokens, max_new_tokens=10)[0].tolist()
|
14 |
return tokenizer._decode(generated_text)
|
15 |
|
16 |
+
iface = gr.Interface(fn=Generate, inputs="text", outputs="text")
|
17 |
iface.launch()
|