mohamedashraf11 commited on
Commit
c015b81
·
verified ·
1 Parent(s): 86c8e92

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
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
- llm = Ollama(model="qwen2")
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("HuggingFaceH4/zephyr-7b-beta")
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(