Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
from huggingface_hub import InferenceClient
|
2 |
import gradio as gr
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
7 |
|
8 |
|
9 |
def format_prompt(message, history):
|
@@ -86,5 +87,5 @@ gr.ChatInterface(
|
|
86 |
fn=generate,
|
87 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
88 |
additional_inputs=additional_inputs,
|
89 |
-
title=
|
90 |
).launch(show_api=False)
|
|
|
1 |
from huggingface_hub import InferenceClient
|
2 |
import gradio as gr
|
3 |
|
4 |
+
llm="meta-llama/Meta-Llama-3.1-8B-Instruct"
|
5 |
+
|
6 |
+
|
7 |
+
client = InferenceClient(llm)
|
8 |
|
9 |
|
10 |
def format_prompt(message, history):
|
|
|
87 |
fn=generate,
|
88 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
|
89 |
additional_inputs=additional_inputs,
|
90 |
+
title=llm
|
91 |
).launch(show_api=False)
|