Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,8 +34,7 @@ def main():
|
|
| 34 |
st.write(f"- {entity['word']} ({entity_group})")
|
| 35 |
elif selected_task == "QA":
|
| 36 |
# ... rest of QA code
|
| 37 |
-
elif selected_task == "Text Generation":
|
| 38 |
-
# Fix indentation error here - The entire code block under this line needs indentation
|
| 39 |
# Choose generation task from another dropdown
|
| 40 |
generation_task = st.selectbox("Choose Generation Task:", ["Text summarization (short)", "Poem", "Code"])
|
| 41 |
if generation_task == "Text summarization (short)":
|
|
|
|
| 34 |
st.write(f"- {entity['word']} ({entity_group})")
|
| 35 |
elif selected_task == "QA":
|
| 36 |
# ... rest of QA code
|
| 37 |
+
elif selected_task == "Text Generation": # Ensure proper indentation here
|
|
|
|
| 38 |
# Choose generation task from another dropdown
|
| 39 |
generation_task = st.selectbox("Choose Generation Task:", ["Text summarization (short)", "Poem", "Code"])
|
| 40 |
if generation_task == "Text summarization (short)":
|