openfree commited on
Commit
f86099a
โ€ข
1 Parent(s): ad9db85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -90,6 +90,7 @@ def chat(message, history, uploaded_file, model_name, system_message="", max_tok
90
  css = """
91
  footer {visibility: hidden}
92
  """
 
93
 
94
  with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
95
  with gr.Row():
@@ -112,8 +113,8 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
112
  )
113
 
114
  file_upload = gr.File(
115
- label="ํŒŒ์ผ ์—…๋กœ๋“œ (.csv, .txt, .py, .parquet)",
116
- file_types=[".csv", ".txt", ".py", ".parquet"],
117
  type="filepath"
118
  )
119
 
@@ -123,6 +124,8 @@ with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
123
  temperature = gr.Slider(minimum=0, maximum=1, value=0.7, label="Temperature")
124
  top_p = gr.Slider(minimum=0, maximum=1, value=0.9, label="Top P")
125
 
 
 
126
  # ์ด๋ฒคํŠธ ๋ฐ”์ธ๋”ฉ
127
  msg.submit(
128
  chat,
 
90
  css = """
91
  footer {visibility: hidden}
92
  """
93
+ # ... (์ด์ „ ์ฝ”๋“œ ๋™์ผ)
94
 
95
  with gr.Blocks(theme="Yntec/HaleyCH_Theme_Orange", css=css) as demo:
96
  with gr.Row():
 
113
  )
114
 
115
  file_upload = gr.File(
116
+ label="ํŒŒ์ผ ์—…๋กœ๋“œ",
117
+ file_types=["text", ".parquet"], # ํŒŒ์ผ ํƒ€์ž… ์ˆ˜์ •
118
  type="filepath"
119
  )
120
 
 
124
  temperature = gr.Slider(minimum=0, maximum=1, value=0.7, label="Temperature")
125
  top_p = gr.Slider(minimum=0, maximum=1, value=0.9, label="Top P")
126
 
127
+
128
+
129
  # ์ด๋ฒคํŠธ ๋ฐ”์ธ๋”ฉ
130
  msg.submit(
131
  chat,