Spaces:
Sleeping
Sleeping
Commit
·
7d2502d
1
Parent(s):
3ab6c75
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,6 +43,8 @@ try:
|
|
| 43 |
except Exception:
|
| 44 |
OpenAI = None
|
| 45 |
|
|
|
|
|
|
|
| 46 |
# ========================= Predictor (kept same as 2nd) =========================
|
| 47 |
CF_COL = "Conductive Filler Conc. (wt%)"
|
| 48 |
TARGET_COL = "Stress GF (MPa-1)"
|
|
@@ -472,7 +474,7 @@ def synthesize_with_llm(question: str, sentence_lines: List[str], model: str = N
|
|
| 472 |
],
|
| 473 |
temperature=temperature,
|
| 474 |
)
|
| 475 |
-
print(str(getattr(resp, "output_text", None) or str(resp))
|
| 476 |
return getattr(resp, "output_text", None) or str(resp)
|
| 477 |
except Exception:
|
| 478 |
return None
|
|
|
|
| 43 |
except Exception:
|
| 44 |
OpenAI = None
|
| 45 |
|
| 46 |
+
console.log("openAI: ", OpenAI)
|
| 47 |
+
|
| 48 |
# ========================= Predictor (kept same as 2nd) =========================
|
| 49 |
CF_COL = "Conductive Filler Conc. (wt%)"
|
| 50 |
TARGET_COL = "Stress GF (MPa-1)"
|
|
|
|
| 474 |
],
|
| 475 |
temperature=temperature,
|
| 476 |
)
|
| 477 |
+
print(str(getattr(resp, "output_text", None) or str(resp)))
|
| 478 |
return getattr(resp, "output_text", None) or str(resp)
|
| 479 |
except Exception:
|
| 480 |
return None
|