Spaces:
Running
Running
littlebird13
commited on
Commit
•
927e513
1
Parent(s):
c8190fb
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def model_chat(query: Optional[str], history: Optional[History], system: str
|
|
55 |
messages = history_to_messages(history, system)
|
56 |
messages.append({'role': Role.USER, 'content': query})
|
57 |
gen = Generation.call(
|
58 |
-
model = "qwen2.5-coder-
|
59 |
messages=messages,
|
60 |
result_format='message',
|
61 |
stream=True
|
@@ -111,7 +111,7 @@ def main():
|
|
111 |
with gr.Column(scale=1):
|
112 |
modify_system = gr.Button("🛠️ Set system prompt and clear history", scale=2)
|
113 |
system_state = gr.Textbox(value=default_system, visible=False)
|
114 |
-
chatbot = gr.Chatbot(label='Qwen2.5-Coder-
|
115 |
textbox = gr.Textbox(lines=1, label='Input')
|
116 |
|
117 |
with gr.Row():
|
|
|
55 |
messages = history_to_messages(history, system)
|
56 |
messages.append({'role': Role.USER, 'content': query})
|
57 |
gen = Generation.call(
|
58 |
+
model = "qwen2.5-coder-32b-instruct",
|
59 |
messages=messages,
|
60 |
result_format='message',
|
61 |
stream=True
|
|
|
111 |
with gr.Column(scale=1):
|
112 |
modify_system = gr.Button("🛠️ Set system prompt and clear history", scale=2)
|
113 |
system_state = gr.Textbox(value=default_system, visible=False)
|
114 |
+
chatbot = gr.Chatbot(label='Qwen2.5-Coder-32B-Instruct')
|
115 |
textbox = gr.Textbox(lines=1, label='Input')
|
116 |
|
117 |
with gr.Row():
|