Spaces:
Sleeping
Sleeping
Ashhar
commited on
Commit
•
2937397
1
Parent(s):
4fdfb24
impr font size
Browse files
app.py
CHANGED
@@ -308,9 +308,10 @@ def predict(model: str = None, attempts=0):
|
|
308 |
time.sleep(0.2)
|
309 |
return predict(model, attempts + 1)
|
310 |
else:
|
311 |
-
# U.pprint("Switching to TOOLS_MODEL")
|
312 |
-
# return predict(TOOLS_MODEL)
|
313 |
responseContent = __removeFunctionCall(responseContent)
|
|
|
|
|
|
|
314 |
toolCalls = responseMessage.tool_calls
|
315 |
|
316 |
# U.pprint(f"{responseMessage=}")
|
|
|
308 |
time.sleep(0.2)
|
309 |
return predict(model, attempts + 1)
|
310 |
else:
|
|
|
|
|
311 |
responseContent = __removeFunctionCall(responseContent)
|
312 |
+
if "<function=" in responseContent:
|
313 |
+
U.pprint("Switching to TOOLS_MODEL")
|
314 |
+
return predict(TOOLS_MODEL)
|
315 |
toolCalls = responseMessage.tool_calls
|
316 |
|
317 |
# U.pprint(f"{responseMessage=}")
|
utils.py
CHANGED
@@ -29,7 +29,7 @@ def __getFontsUrl():
|
|
29 |
params = "&".join([f"family={font}" for font in FONTS])
|
30 |
params = f"{params}&display=swap"
|
31 |
fontsUrl = f"{baseLink}?{params}"
|
32 |
-
pprint(f"{fontsUrl=}")
|
33 |
return fontsUrl
|
34 |
|
35 |
|
@@ -51,8 +51,12 @@ def applyCommonStyles():
|
|
51 |
font-size: 0.9rem;
|
52 |
}
|
53 |
|
54 |
-
|
55 |
-
font-size: 0.8rem;
|
|
|
|
|
|
|
|
|
56 |
}
|
57 |
|
58 |
@keyframes blinker {
|
|
|
29 |
params = "&".join([f"family={font}" for font in FONTS])
|
30 |
params = f"{params}&display=swap"
|
31 |
fontsUrl = f"{baseLink}?{params}"
|
32 |
+
# pprint(f"{fontsUrl=}")
|
33 |
return fontsUrl
|
34 |
|
35 |
|
|
|
51 |
font-size: 0.9rem;
|
52 |
}
|
53 |
|
54 |
+
code {
|
55 |
+
font-size: 0.8rem !important;
|
56 |
+
}
|
57 |
+
|
58 |
+
.stButton p {
|
59 |
+
font-size: 0.8rem !important;
|
60 |
}
|
61 |
|
62 |
@keyframes blinker {
|