ginipick commited on
Commit
66fa514
·
verified ·
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")