Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
# Importing required libraries
|
|
|
|
|
|
|
2 |
import json
|
3 |
import subprocess
|
4 |
from llama_cpp import Llama
|
@@ -125,7 +128,6 @@ def respond(
|
|
125 |
# Create a chat interface
|
126 |
demo = gr.ChatInterface(
|
127 |
respond,
|
128 |
-
type="messages",
|
129 |
additional_inputs_accordion=gr.Accordion(
|
130 |
label="⚙️ Parameters", open=False, render=False
|
131 |
),
|
@@ -192,9 +194,7 @@ demo = gr.ChatInterface(
|
|
192 |
stop_btn="Stop",
|
193 |
title=title,
|
194 |
description=description,
|
195 |
-
chatbot=gr.Chatbot(
|
196 |
-
scale=1, show_copy_button=True, type="messages"
|
197 |
-
),
|
198 |
flagging_mode="never",
|
199 |
)
|
200 |
|
|
|
1 |
# Importing required libraries
|
2 |
+
import warnings
|
3 |
+
warnings.filterwarnings("ignore")
|
4 |
+
|
5 |
import json
|
6 |
import subprocess
|
7 |
from llama_cpp import Llama
|
|
|
128 |
# Create a chat interface
|
129 |
demo = gr.ChatInterface(
|
130 |
respond,
|
|
|
131 |
additional_inputs_accordion=gr.Accordion(
|
132 |
label="⚙️ Parameters", open=False, render=False
|
133 |
),
|
|
|
194 |
stop_btn="Stop",
|
195 |
title=title,
|
196 |
description=description,
|
197 |
+
chatbot=gr.Chatbot(scale=1, show_copy_button=True),
|
|
|
|
|
198 |
flagging_mode="never",
|
199 |
)
|
200 |
|