mikemin027
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,20 @@
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
|
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
""
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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(
|