Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import json
|
|
5 |
# Define the URL for the local Ollama API and the model name
|
6 |
OLLAMA_API_URL = "http://localhost:11434/api/generate"
|
7 |
# This must match the name used in `ollama pull` in Dockerfile
|
8 |
-
MODEL_NAME = "
|
9 |
|
10 |
def generate_text(prompt, max_new_tokens=256, temperature=0.7):
|
11 |
"""
|
|
|
5 |
# Define the URL for the local Ollama API and the model name
|
6 |
OLLAMA_API_URL = "http://localhost:11434/api/generate"
|
7 |
# This must match the name used in `ollama pull` in Dockerfile
|
8 |
+
MODEL_NAME = "gemma3_4b_it_qat"
|
9 |
|
10 |
def generate_text(prompt, max_new_tokens=256, temperature=0.7):
|
11 |
"""
|