Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -27,8 +27,8 @@ pipe = pipeline("text-generation", model="Preetham04/text-generation")
|
|
27 |
|
28 |
def generate(text):
|
29 |
predictions = pipe(text)
|
30 |
-
|
31 |
-
|
32 |
|
33 |
|
34 |
with gr.Blocks() as demo:
|
|
|
27 |
|
28 |
def generate(text):
|
29 |
predictions = pipe(text)
|
30 |
+
print(predictions) # To see the structure of predictions
|
31 |
+
return {p["generated_text"] for p in predictions}
|
32 |
|
33 |
|
34 |
with gr.Blocks() as demo:
|