Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,7 +100,7 @@ def generate_learning_content(topic, description, difficulty, temperature=0.9, m
|
|
| 100 |
raw_output += response.token.text
|
| 101 |
|
| 102 |
# Clean and validate the raw output
|
| 103 |
-
return
|
| 104 |
|
| 105 |
# Define the Gradio interface
|
| 106 |
with gr.Blocks(theme="ocean") as demo:
|
|
|
|
| 100 |
raw_output += response.token.text
|
| 101 |
|
| 102 |
# Clean and validate the raw output
|
| 103 |
+
return clean_and_format_learning_content(raw_output)
|
| 104 |
|
| 105 |
# Define the Gradio interface
|
| 106 |
with gr.Blocks(theme="ocean") as demo:
|