Spaces:
Runtime error
Runtime error
Commit
·
509b604
1
Parent(s):
7b0cd55
Testing if the app works
Browse files
app.py
CHANGED
@@ -11,6 +11,7 @@ pipeline = transformers.pipeline(
|
|
11 |
)
|
12 |
|
13 |
def generate_text(text):
|
|
|
14 |
sequences = pipeline(
|
15 |
text,
|
16 |
do_sample=True,
|
@@ -29,7 +30,6 @@ iface = gr.Interface(
|
|
29 |
fn=generate_text,
|
30 |
inputs=gr.Textbox(),
|
31 |
outputs="text",
|
32 |
-
live=True,
|
33 |
)
|
34 |
|
35 |
iface.launch()
|
|
|
11 |
)
|
12 |
|
13 |
def generate_text(text):
|
14 |
+
return "hello" + text
|
15 |
sequences = pipeline(
|
16 |
text,
|
17 |
do_sample=True,
|
|
|
30 |
fn=generate_text,
|
31 |
inputs=gr.Textbox(),
|
32 |
outputs="text",
|
|
|
33 |
)
|
34 |
|
35 |
iface.launch()
|