Update app.py
Browse files
app.py
CHANGED
@@ -175,7 +175,7 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css, title="EveryChat
|
|
175 |
chatbot = gr.Chatbot(
|
176 |
height=600,
|
177 |
label="Chat Interface 💬",
|
178 |
-
type="messages"
|
179 |
)
|
180 |
msg = gr.Textbox(
|
181 |
label="Type your message",
|
@@ -184,7 +184,7 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css, title="EveryChat
|
|
184 |
container=False
|
185 |
)
|
186 |
with gr.Row():
|
187 |
-
clear = gr.ClearButton([msg, chatbot])
|
188 |
send = gr.Button("Send 📤")
|
189 |
|
190 |
with gr.Column(scale=1):
|
@@ -195,9 +195,9 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css, title="EveryChat
|
|
195 |
info="Choose your preferred AI model"
|
196 |
)
|
197 |
|
|
|
198 |
file_upload = gr.File(
|
199 |
-
label="Upload File
|
200 |
-
info="Support: Text, Code, CSV, Parquet files",
|
201 |
file_types=["text", ".csv", ".parquet"],
|
202 |
type="filepath"
|
203 |
)
|
@@ -220,7 +220,7 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css, title="EveryChat
|
|
220 |
[msg]
|
221 |
)
|
222 |
|
223 |
-
send.click(
|
224 |
chat,
|
225 |
inputs=[msg, chatbot, file_upload, model_name, system_message, max_tokens, temperature, top_p],
|
226 |
outputs=[msg, chatbot],
|
|
|
175 |
chatbot = gr.Chatbot(
|
176 |
height=600,
|
177 |
label="Chat Interface 💬",
|
178 |
+
type="messages"
|
179 |
)
|
180 |
msg = gr.Textbox(
|
181 |
label="Type your message",
|
|
|
184 |
container=False
|
185 |
)
|
186 |
with gr.Row():
|
187 |
+
clear = gr.ClearButton([msg, chatbot])
|
188 |
send = gr.Button("Send 📤")
|
189 |
|
190 |
with gr.Column(scale=1):
|
|
|
195 |
info="Choose your preferred AI model"
|
196 |
)
|
197 |
|
198 |
+
gr.Markdown("### Upload File 📁\nSupport: Text, Code, CSV, Parquet files")
|
199 |
file_upload = gr.File(
|
200 |
+
label="Upload File",
|
|
|
201 |
file_types=["text", ".csv", ".parquet"],
|
202 |
type="filepath"
|
203 |
)
|
|
|
220 |
[msg]
|
221 |
)
|
222 |
|
223 |
+
send.click(
|
224 |
chat,
|
225 |
inputs=[msg, chatbot, file_upload, model_name, system_message, max_tokens, temperature, top_p],
|
226 |
outputs=[msg, chatbot],
|