Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,14 @@
|
|
1 |
from huggingface_hub import InferenceClient
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")
|
5 |
def format_prompt(message, history, system_prompt=None):
|
6 |
prompt = "<s>"
|
@@ -43,7 +51,7 @@ def generate(
|
|
43 |
demo = gr.ChatInterface(
|
44 |
fn=generate,
|
45 |
title="",
|
46 |
-
theme="
|
47 |
)
|
48 |
|
49 |
demo.queue().launch(show_api=False)
|
|
|
1 |
from huggingface_hub import InferenceClient
|
2 |
import gradio as gr
|
3 |
|
4 |
+
css = '''
|
5 |
+
.gradio-container{max-width: 1000px !important}
|
6 |
+
h1{text-align:center}
|
7 |
+
footer {
|
8 |
+
visibility: hidden
|
9 |
+
}
|
10 |
+
'''
|
11 |
+
|
12 |
client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")
|
13 |
def format_prompt(message, history, system_prompt=None):
|
14 |
prompt = "<s>"
|
|
|
51 |
demo = gr.ChatInterface(
|
52 |
fn=generate,
|
53 |
title="",
|
54 |
+
theme="allenai/gradio-theme"
|
55 |
)
|
56 |
|
57 |
demo.queue().launch(show_api=False)
|