littlebird13
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def model_chat(query: Optional[str], history: Optional[History], system: str
|
|
49 |
messages = history_to_messages(history, system)
|
50 |
messages.append({'role': Role.USER, 'content': query})
|
51 |
gen = Generation.call(
|
52 |
-
model = "
|
53 |
messages=messages,
|
54 |
result_format='message',
|
55 |
stream=True
|
@@ -68,7 +68,7 @@ def model_chat(query: Optional[str], history: Optional[History], system: str
|
|
68 |
|
69 |
|
70 |
with gr.Blocks() as demo:
|
71 |
-
gr.Markdown("""<center><font size=8>
|
72 |
|
73 |
with gr.Row():
|
74 |
with gr.Column(scale=3):
|
@@ -76,7 +76,7 @@ with gr.Blocks() as demo:
|
|
76 |
with gr.Column(scale=1):
|
77 |
modify_system = gr.Button("🛠️ Set system prompt and clear history", scale=2)
|
78 |
system_state = gr.Textbox(value=default_system, visible=False)
|
79 |
-
chatbot = gr.Chatbot(label='
|
80 |
textbox = gr.Textbox(lines=2, label='Input')
|
81 |
|
82 |
with gr.Row():
|
|
|
49 |
messages = history_to_messages(history, system)
|
50 |
messages.append({'role': Role.USER, 'content': query})
|
51 |
gen = Generation.call(
|
52 |
+
model = "qwen2.5-coder-7B-instruct",
|
53 |
messages=messages,
|
54 |
result_format='message',
|
55 |
stream=True
|
|
|
68 |
|
69 |
|
70 |
with gr.Blocks() as demo:
|
71 |
+
gr.Markdown("""<center><font size=8>Qwen2.5-Coder-7B-Instruct Bot👾</center>""")
|
72 |
|
73 |
with gr.Row():
|
74 |
with gr.Column(scale=3):
|
|
|
76 |
with gr.Column(scale=1):
|
77 |
modify_system = gr.Button("🛠️ Set system prompt and clear history", scale=2)
|
78 |
system_state = gr.Textbox(value=default_system, visible=False)
|
79 |
+
chatbot = gr.Chatbot(label='Qwen2.5-Coder-7B-Instruct')
|
80 |
textbox = gr.Textbox(lines=2, label='Input')
|
81 |
|
82 |
with gr.Row():
|