Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def respond(
|
|
39 |
outputs = pipeline(
|
40 |
messages,
|
41 |
max_new_tokens=max_tokens,
|
42 |
-
temperature=
|
43 |
top_p=top_p,
|
44 |
eos_token_id=terminators
|
45 |
)
|
@@ -51,6 +51,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
51 |
"""
|
52 |
with gr.Blocks() as demo:
|
53 |
gr.Markdown("# 🇮🇩 Sahabat AI (Gemma)")
|
|
|
54 |
gr.ChatInterface(
|
55 |
respond,
|
56 |
additional_inputs=[
|
|
|
39 |
outputs = pipeline(
|
40 |
messages,
|
41 |
max_new_tokens=max_tokens,
|
42 |
+
temperature=temperature,
|
43 |
top_p=top_p,
|
44 |
eos_token_id=terminators
|
45 |
)
|
|
|
51 |
"""
|
52 |
with gr.Blocks() as demo:
|
53 |
gr.Markdown("# 🇮🇩 Sahabat AI (Gemma)")
|
54 |
+
gr.Markdown("#### [Model page](https://huggingface.co/GoToCompany/gemma2-9b-cpt-sahabatai-v1-instruct)")
|
55 |
gr.ChatInterface(
|
56 |
respond,
|
57 |
additional_inputs=[
|