Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def query(inputs, parameters=None, ENDPOINT_URL=API_URL):
|
|
18 |
#Defining text generation function
|
19 |
def generate_text(inputs):
|
20 |
output = query(inputs)
|
21 |
-
return output
|
22 |
|
23 |
|
24 |
#Gradio Interface
|
|
|
18 |
#Defining text generation function
|
19 |
def generate_text(inputs):
|
20 |
output = query(inputs)
|
21 |
+
return output[0]['generated_text']
|
22 |
|
23 |
|
24 |
#Gradio Interface
|