Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -4,14 +4,11 @@ from huggingface_hub import InferenceClient
|
|
4 |
from langchain_community.llms import Ollama
|
5 |
|
6 |
# Initialize an instance of the Ollama model
|
7 |
-
|
8 |
-
# Invoke the model to generate responses
|
9 |
-
response = llm.invoke("ما هو حكم القتل العمد في الاسلام ؟ ")
|
10 |
-
print(response)
|
11 |
"""
|
12 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
13 |
"""
|
14 |
-
client = InferenceClient("
|
15 |
|
16 |
|
17 |
def respond(
|
|
|
4 |
from langchain_community.llms import Ollama
|
5 |
|
6 |
# Initialize an instance of the Ollama model
|
7 |
+
|
|
|
|
|
|
|
8 |
"""
|
9 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
10 |
"""
|
11 |
+
client = InferenceClient("meta-llama/Llama-3.2-1B")
|
12 |
|
13 |
|
14 |
def respond(
|