ginipick commited on
Commit
66fa514
β€’
1 Parent(s): ca69132

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -132,8 +132,14 @@ def upload_parquet(file):
132
  except Exception as e:
133
  return f"Parquet 파일 μ—…λ‘œλ“œ 쀑 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€: {str(e)}", None, None
134
 
 
 
 
 
 
 
135
  # Gradio Blocks μΈν„°νŽ˜μ΄μŠ€ μ„€μ •
136
- with gr.Blocks() as demo:
137
  gr.Markdown("# LLM μ„œλΉ„μŠ€ μΈν„°νŽ˜μ΄μŠ€")
138
 
139
  with gr.Tab("챗봇"):
@@ -156,7 +162,7 @@ with gr.Blocks() as demo:
156
  )
157
 
158
  with gr.Accordion("μ‹œμŠ€ν…œ ν”„λ‘¬ν”„νŠΈ 및 μ˜΅μ…˜ μ„€μ •", open=False):
159
- system_message = gr.Textbox(label="System Message", value="")
160
  max_tokens = gr.Slider(minimum=1, maximum=8000, value=4000, label="Max Tokens")
161
  temperature = gr.Slider(minimum=0, maximum=1, value=0.7, label="Temperature")
162
  top_p = gr.Slider(minimum=0, maximum=1, value=0.9, label="Top P")
 
132
  except Exception as e:
133
  return f"Parquet 파일 μ—…λ‘œλ“œ 쀑 였λ₯˜κ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€: {str(e)}", None, None
134
 
135
+ css = """
136
+ footer {
137
+ visibility: hidden;
138
+ }
139
+ """
140
+
141
  # Gradio Blocks μΈν„°νŽ˜μ΄μŠ€ μ„€μ •
142
+ with gr.Blocks(theme="Nymbo/Nymbo_Theme", css=css) as demo:
143
  gr.Markdown("# LLM μ„œλΉ„μŠ€ μΈν„°νŽ˜μ΄μŠ€")
144
 
145
  with gr.Tab("챗봇"):
 
162
  )
163
 
164
  with gr.Accordion("μ‹œμŠ€ν…œ ν”„λ‘¬ν”„νŠΈ 및 μ˜΅μ…˜ μ„€μ •", open=False):
165
+ system_message = gr.Textbox(label="System Message", value="λ„ˆλŠ” AI μ‘°μ–Έμž 역할이닀닀")
166
  max_tokens = gr.Slider(minimum=1, maximum=8000, value=4000, label="Max Tokens")
167
  temperature = gr.Slider(minimum=0, maximum=1, value=0.7, label="Temperature")
168
  top_p = gr.Slider(minimum=0, maximum=1, value=0.9, label="Top P")