Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
|
2 |
|
3 |
import os
|
4 |
|
@@ -59,7 +59,7 @@ thread.start()
|
|
59 |
|
60 |
# Load up model
|
61 |
|
62 |
-
os.system(f"ollama pull {
|
63 |
|
64 |
|
65 |
import copy
|
@@ -77,7 +77,7 @@ MODEL_NAME = MODEL_ID.split("/")[-1]
|
|
77 |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
78 |
|
79 |
|
80 |
-
gemma2 = Ollama(model=
|
81 |
|
82 |
|
83 |
TITLE = "<h1><center>Chatbox</center></h1>"
|
|
|
1 |
+
model = "gemma2:27b"
|
2 |
|
3 |
import os
|
4 |
|
|
|
59 |
|
60 |
# Load up model
|
61 |
|
62 |
+
os.system(f"ollama pull {model}")
|
63 |
|
64 |
|
65 |
import copy
|
|
|
77 |
os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
|
78 |
|
79 |
|
80 |
+
gemma2 = Ollama(model=model, request_timeout=30.0)
|
81 |
|
82 |
|
83 |
TITLE = "<h1><center>Chatbox</center></h1>"
|