Update app.py
Browse files
app.py
CHANGED
@@ -193,7 +193,6 @@ def preprocess_text_with_llm(input_text: str) -> str:
|
|
193 |
print(error_message)
|
194 |
return error_message
|
195 |
|
196 |
-
|
197 |
# CSS 설정
|
198 |
css = """
|
199 |
footer {
|
@@ -280,7 +279,15 @@ with gr.Blocks(css=css) as demo:
|
|
280 |
|
281 |
send_data_upload.click(
|
282 |
handle_message_data_upload,
|
283 |
-
inputs=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
284 |
outputs=[chatbot_data_upload, msg_data_upload],
|
285 |
queue=True
|
286 |
)
|
@@ -403,7 +410,7 @@ with gr.Blocks(css=css) as demo:
|
|
403 |
|
404 |
preprocess_button.click(
|
405 |
handle_text_preprocessing,
|
406 |
-
inputs=raw_text_input,
|
407 |
outputs=[preprocess_status, processed_text_output]
|
408 |
)
|
409 |
|
@@ -418,3 +425,4 @@ if __name__ == "__main__":
|
|
418 |
|
419 |
|
420 |
|
|
|
|
193 |
print(error_message)
|
194 |
return error_message
|
195 |
|
|
|
196 |
# CSS 설정
|
197 |
css = """
|
198 |
footer {
|
|
|
279 |
|
280 |
send_data_upload.click(
|
281 |
handle_message_data_upload,
|
282 |
+
inputs=[
|
283 |
+
msg_data_upload,
|
284 |
+
chatbot_data_upload,
|
285 |
+
system_message,
|
286 |
+
max_tokens,
|
287 |
+
temperature,
|
288 |
+
top_p,
|
289 |
+
parquet_data_state, # parquet_data_state를 사용하여 업로드된 데이터를 전달
|
290 |
+
],
|
291 |
outputs=[chatbot_data_upload, msg_data_upload],
|
292 |
queue=True
|
293 |
)
|
|
|
410 |
|
411 |
preprocess_button.click(
|
412 |
handle_text_preprocessing,
|
413 |
+
inputs=[raw_text_input],
|
414 |
outputs=[preprocess_status, processed_text_output]
|
415 |
)
|
416 |
|
|
|
425 |
|
426 |
|
427 |
|
428 |
+
|