Spaces:
Runtime error
Runtime error
Delete app.py
Browse files
app.py
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
import ollama
|
2 |
-
from huggingface_hub import login
|
3 |
-
|
4 |
-
def run_ollama(prompt,token=""):
|
5 |
-
# Login to Hugging Face
|
6 |
-
login(token=token)
|
7 |
-
# Load and run the model
|
8 |
-
model = ollama.load_model("mlabonne/Meta-Llama-3.1-8B-Instruct-abliterated-GGUF")
|
9 |
-
response = model.run("Why is the sky blue")
|
10 |
-
print(response)
|
11 |
-
return response
|
12 |
-
|
13 |
-
if __name__ == "__main__":
|
14 |
-
response = run_ollama()
|
15 |
-
print(response)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|