Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,6 @@
|
|
1 |
from ctransformers import AutoModelForCausalLM
|
2 |
import gradio as gr
|
3 |
|
4 |
-
greety = """
|
5 |
-
Follow us [Gathnex](https://medium.com/@gathnex), [linkedin](https://www.linkedin.com/company/gathnex/) and [Github](https://github.com/gathnexadmin) for more update on Genrative AI, LLM,etc. A special thanks to the Gathnex team members who made a significant contribution to this project.
|
6 |
-
"""
|
7 |
|
8 |
llm = AutoModelForCausalLM.from_pretrained("llama-2-7b-chat.Q4_K_S.gguf",
|
9 |
model_type='llama',
|
@@ -50,9 +47,7 @@ chat_interface = gr.ChatInterface(
|
|
50 |
)
|
51 |
|
52 |
with gr.Blocks(css=css) as demo:
|
53 |
-
|
54 |
-
gr.HTML("<h3><center><a href='https://medium.com/@gathnex'>Gathnex AI</a>💬<h3><center>")
|
55 |
-
gr.DuplicateButton(value="Duplicate Space for private use", elem_id="duplicate-button")
|
56 |
chat_interface.render()
|
57 |
gr.Markdown(greety)
|
58 |
|
|
|
1 |
from ctransformers import AutoModelForCausalLM
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
|
|
4 |
|
5 |
llm = AutoModelForCausalLM.from_pretrained("llama-2-7b-chat.Q4_K_S.gguf",
|
6 |
model_type='llama',
|
|
|
47 |
)
|
48 |
|
49 |
with gr.Blocks(css=css) as demo:
|
50 |
+
|
|
|
|
|
51 |
chat_interface.render()
|
52 |
gr.Markdown(greety)
|
53 |
|