mikemin027 commited on
Commit
f858622
·
verified ·
1 Parent(s): 9ba8ee5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -4
app.py CHANGED
@@ -1,10 +1,20 @@
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
 
3
 
4
- """
5
- 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
6
- """
7
- client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
 
 
 
 
 
 
 
 
 
8
 
9
 
10
  def respond(
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
+ from llama_cpp import Llama
4
 
5
+ llm = Llama.from_pretrained(
6
+ repo_id="bartowski/Reasoning-Llama-1b-v0.1-GGUF",
7
+ filename="Reasoning-Llama-1b-v0.1-f16.gguf",
8
+ )
9
+
10
+ llm.create_chat_completion(
11
+ messages = [
12
+ {
13
+ "role": "user",
14
+ "content": "What is the capital of France?"
15
+ }
16
+ ]
17
+ )
18
 
19
 
20
  def respond(