Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -200,7 +200,6 @@ Keep in mind the:
|
|
| 200 |
|
| 201 |
--- Example 2 ---
|
| 202 |
|
| 203 |
-
<!DOCTYPE html>
|
| 204 |
<html>
|
| 205 |
<head>
|
| 206 |
<meta charset="utf-8">
|
|
@@ -360,7 +359,7 @@ Keep in mind the:
|
|
| 360 |
|
| 361 |
|
| 362 |
--- Example 3 ---
|
| 363 |
-
|
| 364 |
<html>
|
| 365 |
<head>
|
| 366 |
<meta charset="utf-8">
|
|
@@ -523,11 +522,7 @@ Keep in mind the:
|
|
| 523 |
</html>"""
|
| 524 |
result = openai_call(prompt, model="o3-mini", max_tokens_param=10000)
|
| 525 |
result = result.strip().strip("```").strip()
|
| 526 |
-
htmloutput = f"""<iframe class="visual-frame" srcdoc='
|
| 527 |
-
<!DOCTYPE html>
|
| 528 |
-
{result}' width="1400px" height="800px" style="border:none;"></iframe>
|
| 529 |
-
"""
|
| 530 |
-
|
| 531 |
logging.info(f"The code produced for this graph placeholder:\n{placeholder_text}\n\n {htmloutput}\n\n")
|
| 532 |
return htmloutput
|
| 533 |
|
|
|
|
| 200 |
|
| 201 |
--- Example 2 ---
|
| 202 |
|
|
|
|
| 203 |
<html>
|
| 204 |
<head>
|
| 205 |
<meta charset="utf-8">
|
|
|
|
| 359 |
|
| 360 |
|
| 361 |
--- Example 3 ---
|
| 362 |
+
|
| 363 |
<html>
|
| 364 |
<head>
|
| 365 |
<meta charset="utf-8">
|
|
|
|
| 522 |
</html>"""
|
| 523 |
result = openai_call(prompt, model="o3-mini", max_tokens_param=10000)
|
| 524 |
result = result.strip().strip("```").strip()
|
| 525 |
+
htmloutput = f"""<iframe class="visual-frame" srcdoc='<!DOCTYPE html>{result}' width="1400px" height="800px" style="border:none;"></iframe>"""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 526 |
logging.info(f"The code produced for this graph placeholder:\n{placeholder_text}\n\n {htmloutput}\n\n")
|
| 527 |
return htmloutput
|
| 528 |
|