Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ if uploaded_file:
|
|
| 35 |
|
| 36 |
# Step 2: Generate Story (remove prompt from output)
|
| 37 |
with st.spinner("Writing a children's story..."):
|
| 38 |
-
prompt = f"
|
| 39 |
story_output = gpt2(
|
| 40 |
prompt,
|
| 41 |
max_length=100,
|
|
|
|
| 35 |
|
| 36 |
# Step 2: Generate Story (remove prompt from output)
|
| 37 |
with st.spinner("Writing a children's story..."):
|
| 38 |
+
prompt = f"{caption}"
|
| 39 |
story_output = gpt2(
|
| 40 |
prompt,
|
| 41 |
max_length=100,
|