Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,13 @@ client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")
|
|
12 |
# client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
13 |
# client = InferenceClient("nvidia/DeepSeek-R1-FP4")
|
14 |
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
def respond(
|
18 |
message,
|
@@ -55,6 +61,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
55 |
"""
|
56 |
demo = gr.ChatInterface(
|
57 |
respond,
|
|
|
58 |
additional_inputs=[
|
59 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
60 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
|
|
12 |
# client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
13 |
# client = InferenceClient("nvidia/DeepSeek-R1-FP4")
|
14 |
|
15 |
+
custom_css = """
|
16 |
+
<style>
|
17 |
+
.built-with {
|
18 |
+
display: none !important;
|
19 |
+
}
|
20 |
+
</style>
|
21 |
+
"""
|
22 |
|
23 |
def respond(
|
24 |
message,
|
|
|
61 |
"""
|
62 |
demo = gr.ChatInterface(
|
63 |
respond,
|
64 |
+
css=custom_css,
|
65 |
additional_inputs=[
|
66 |
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
67 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|