Spaces:
Sleeping
Sleeping
Update backend/main.py
Browse files- backend/main.py +3 -3
backend/main.py
CHANGED
|
@@ -14,7 +14,7 @@ from fastapi.middleware.cors import CORSMiddleware
|
|
| 14 |
from fastapi.responses import JSONResponse, HTMLResponse
|
| 15 |
from pydantic import BaseModel
|
| 16 |
|
| 17 |
-
app = FastAPI(title="Protocol Contradiction Detector")
|
| 18 |
|
| 19 |
app.add_middleware(
|
| 20 |
CORSMiddleware,
|
|
@@ -318,7 +318,7 @@ def generate_html_report(extracted: list, comparison: dict, paper_names: list) -
|
|
| 318 |
<head>
|
| 319 |
<meta charset="UTF-8">
|
| 320 |
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
| 321 |
-
<title>Protocol Contradiction Report</title>
|
| 322 |
<style>
|
| 323 |
*{{box-sizing:border-box;margin:0;padding:0}}
|
| 324 |
body{{font-family:'Segoe UI',sans-serif;background:#f7f7fa;color:#1a1a2e;padding:40px 24px}}
|
|
@@ -385,7 +385,7 @@ def generate_html_report(extracted: list, comparison: dict, paper_names: list) -
|
|
| 385 |
<p style="font-size:13px;color:#444;line-height:1.6">{optimal.get('rationale','')}</p>
|
| 386 |
<div class="optimal-grid">{optimal_html}</div>
|
| 387 |
</div>
|
| 388 |
-
<div class="footer">Protocol Contradiction Detector 路 Powered by Groq + LLaMA 3.3 70B</div>
|
| 389 |
</div></body></html>"""
|
| 390 |
|
| 391 |
|
|
|
|
| 14 |
from fastapi.responses import JSONResponse, HTMLResponse
|
| 15 |
from pydantic import BaseModel
|
| 16 |
|
| 17 |
+
app = FastAPI(title="ContraGenAI - A Protocol Contradiction Detector")
|
| 18 |
|
| 19 |
app.add_middleware(
|
| 20 |
CORSMiddleware,
|
|
|
|
| 318 |
<head>
|
| 319 |
<meta charset="UTF-8">
|
| 320 |
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
| 321 |
+
<title>ContraGenAI - Protocol Contradiction Report</title>
|
| 322 |
<style>
|
| 323 |
*{{box-sizing:border-box;margin:0;padding:0}}
|
| 324 |
body{{font-family:'Segoe UI',sans-serif;background:#f7f7fa;color:#1a1a2e;padding:40px 24px}}
|
|
|
|
| 385 |
<p style="font-size:13px;color:#444;line-height:1.6">{optimal.get('rationale','')}</p>
|
| 386 |
<div class="optimal-grid">{optimal_html}</div>
|
| 387 |
</div>
|
| 388 |
+
<div class="footer">ContraGenAI 路 Protocol Contradiction Detector 路 Powered by Groq + LLaMA 3.3 70B</div>
|
| 389 |
</div></body></html>"""
|
| 390 |
|
| 391 |
|