Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import requests
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
|
|
|
| 7 |
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
import gradio as gr
|
|
@@ -61,7 +62,7 @@ def json_string_to_poster(json_string:str)-> str:
|
|
| 61 |
|
| 62 |
return f"""
|
| 63 |
<div id="root"></div>
|
| 64 |
-
<div id="cheatsheets_json">{json_string}</div>
|
| 65 |
"""
|
| 66 |
|
| 67 |
final_answer = FinalAnswerTool()
|
|
|
|
| 4 |
import pytz
|
| 5 |
import yaml
|
| 6 |
from tools.final_answer import FinalAnswerTool
|
| 7 |
+
from json_repair import repair_json
|
| 8 |
|
| 9 |
from Gradio_UI import GradioUI
|
| 10 |
import gradio as gr
|
|
|
|
| 62 |
|
| 63 |
return f"""
|
| 64 |
<div id="root"></div>
|
| 65 |
+
<div id="cheatsheets_json">{repair_json(json_string)}</div>
|
| 66 |
"""
|
| 67 |
|
| 68 |
final_answer = FinalAnswerTool()
|