Spaces:
Build error
Build error
Update backend/app.py
Browse files- backend/app.py +2 -2
backend/app.py
CHANGED
|
@@ -10,7 +10,7 @@ import requests
|
|
| 10 |
|
| 11 |
def connect_to_ollama():
|
| 12 |
try:
|
| 13 |
-
response = requests.get('http://
|
| 14 |
if response.status_code == 200:
|
| 15 |
print('Connected to ollama server')
|
| 16 |
else:
|
|
@@ -41,7 +41,7 @@ async def on_chat_start():
|
|
| 41 |
temperature=0.2,
|
| 42 |
stream=True,
|
| 43 |
timeout=45,
|
| 44 |
-
base_url="
|
| 45 |
|
| 46 |
)
|
| 47 |
|
|
|
|
| 10 |
|
| 11 |
def connect_to_ollama():
|
| 12 |
try:
|
| 13 |
+
response = requests.get('http://bentebbutt-langroid-custom-front-end.hf.space:11434')
|
| 14 |
if response.status_code == 200:
|
| 15 |
print('Connected to ollama server')
|
| 16 |
else:
|
|
|
|
| 41 |
temperature=0.2,
|
| 42 |
stream=True,
|
| 43 |
timeout=45,
|
| 44 |
+
base_url="http://bentebbutt-langroid-custom-front-end.hf.space",
|
| 45 |
|
| 46 |
)
|
| 47 |
|