Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ def predict(system_msg, inputs, top_p, temperature, chat_counter, chatbot=[], hi
|
|
69 |
messages.append(temp)
|
70 |
|
71 |
|
72 |
-
payload = {"model": "gpt-
|
73 |
"top_p": 0.9, "n": 1, "stream": True, "presence_penalty": 0, "frequency_penalty": 0,}
|
74 |
|
75 |
chat_counter += 1
|
@@ -135,9 +135,9 @@ with gr.Blocks(theme=theme) as demo:
|
|
135 |
system_msg = gr.Textbox(value="")
|
136 |
new_msg = gr.Textbox(value="")
|
137 |
accordion_msg = gr.HTML(value="", visible=False)
|
138 |
-
chatbot = gr.Chatbot(label='Trek
|
139 |
inputs = gr.Textbox(
|
140 |
-
placeholder="Buraya yazın,
|
141 |
state = gr.State([])
|
142 |
with gr.Accordion("", open=False, visible=False):
|
143 |
top_p = gr.Slider(minimum=-0, maximum=1.0, value=0.5,
|
|
|
69 |
messages.append(temp)
|
70 |
|
71 |
|
72 |
+
payload = {"model": "gpt-4o3", "messages": messages, "temperature": 0.7,
|
73 |
"top_p": 0.9, "n": 1, "stream": True, "presence_penalty": 0, "frequency_penalty": 0,}
|
74 |
|
75 |
chat_counter += 1
|
|
|
135 |
system_msg = gr.Textbox(value="")
|
136 |
new_msg = gr.Textbox(value="")
|
137 |
accordion_msg = gr.HTML(value="", visible=False)
|
138 |
+
chatbot = gr.Chatbot(label='Trek Bike Finder', elem_id="chatbot")
|
139 |
inputs = gr.Textbox(
|
140 |
+
placeholder="Buraya yazın, istediğniz modeli beraber bulalım.", show_label=False)
|
141 |
state = gr.State([])
|
142 |
with gr.Accordion("", open=False, visible=False):
|
143 |
top_p = gr.Slider(minimum=-0, maximum=1.0, value=0.5,
|