Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -151,7 +151,6 @@ import re
|
|
| 151 |
# ...
|
| 152 |
# Final print statement
|
| 153 |
print(json.dumps(final_data_structure, indent=4))
|
| 154 |
-
|
| 155 |
generated_text = cohere_chat(prompt_for_coder)
|
| 156 |
# This regex is more robust for extracting the final code block
|
| 157 |
match = re2.search(r"PYTHON SCRIPT:\s*```python\n(.*?)```", generated_text, re2.DOTALL)
|
|
|
|
| 151 |
# ...
|
| 152 |
# Final print statement
|
| 153 |
print(json.dumps(final_data_structure, indent=4))
|
|
|
|
| 154 |
generated_text = cohere_chat(prompt_for_coder)
|
| 155 |
# This regex is more robust for extracting the final code block
|
| 156 |
match = re2.search(r"PYTHON SCRIPT:\s*```python\n(.*?)```", generated_text, re2.DOTALL)
|