Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,10 @@ def func(sentence, max_length, temperature):
|
|
27 |
return output_strs
|
28 |
|
29 |
|
30 |
-
demo = gr.Interface(fn=func,
|
|
|
|
|
|
|
31 |
|
32 |
if __name__ == "__main__":
|
33 |
demo.launch()
|
|
|
27 |
return output_strs
|
28 |
|
29 |
|
30 |
+
demo = gr.Interface(fn=func,
|
31 |
+
inputs=["text", gr.Slider(5, 25, value=10, step=1), gr.Slider(0.1, 10, value=0.1)],
|
32 |
+
outputs=["text", "text", "text", "text", "text"]
|
33 |
+
)
|
34 |
|
35 |
if __name__ == "__main__":
|
36 |
demo.launch()
|