JAMESPARK3 commited on
Commit
d6616c7
Β·
verified Β·
1 Parent(s): f880c9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -385,7 +385,7 @@ def show_weather_info(data):
385
  st.markdown(f'''
386
  <div class="time-container">
387
  <div style="text-align: center; margin-bottom: 0.5rem; font-size: 6em; font-weight: bold; color: black;">
388
- {temp}{precip_mark} &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {tomorrow_morning_weather}
389
  </div>
390
  <span class="date-text">{formatted_date}</span>
391
  </div>
@@ -597,7 +597,7 @@ def show_temperature_graph(data):
597
  y=max(temps) + 3,
598
  text=f"{icon}",
599
  showarrow=False,
600
- font=dict(size=30)
601
  )
602
  fig.add_annotation(
603
  x=times[i],
@@ -673,7 +673,7 @@ def show_temperature_graph(data):
673
  response = client.chat.completions.create(
674
  model="hf:Nexusflow/Athene-V2-Chat",
675
  messages=[
676
- {"role": "system", "content": "당신은 날씨 μ˜ˆλ³΄κ΄€μž…λ‹ˆλ‹€. μ£Όμ–΄μ§„ μ‹œκ°„λŒ€λ³„ 날씨 데이터λ₯Ό λ°”νƒ•μœΌλ‘œ μ •ν™•ν•œ 날씨 예보λ₯Ό μƒμ„±ν•΄μ£Όμ„Έμš”."},
677
  {"role": "user", "content": f"""ν˜„μž¬ μ‹œκ°μ€ {current_time.strftime('%Hμ‹œ %MλΆ„')}μž…λ‹ˆλ‹€.
678
 
679
  λ‹€μŒ FCST_DT의 μ‹œκ°„λŒ€λ³„ 날씨 데이터λ₯Ό 보고 μ‹€μ œ 날씨 상황에 λ§žλŠ” μ •ν™•ν•œ 날씨 예보λ₯Ό 200자의 μžμ—°μŠ€λŸ¬μš΄ λ¬Έμž₯으둜 λ§Œλ“€μ–΄μ£Όμ„Έμš”. λΉ„λ‚˜ 눈 μ˜ˆλ³΄κ°€ μžˆλŠ” κ²½μš°μ—λ§Œ μš°μ‚°μ„ μ€€λΉ„ν•˜λ„λ‘ μ•ˆλ‚΄ν•΄μ£Όμ„Έμš”. μ˜·μ°¨λ¦Όμ€ λ‹€μŒμ„ μ°Έκ³ ν•˜μ„Έμš”.
 
385
  st.markdown(f'''
386
  <div class="time-container">
387
  <div style="text-align: center; margin-bottom: 0.5rem; font-size: 6em; font-weight: bold; color: black;">
388
+ {temp}<span style="font-size: 1.2em; vertical-align: middle; color: white; text-shadow: 1px 1px 2px rgba(0,0,0,0.3);">{precip_mark}</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {tomorrow_morning_weather}
389
  </div>
390
  <span class="date-text">{formatted_date}</span>
391
  </div>
 
597
  y=max(temps) + 3,
598
  text=f"{icon}",
599
  showarrow=False,
600
+ font=dict(size=30, color="white")
601
  )
602
  fig.add_annotation(
603
  x=times[i],
 
673
  response = client.chat.completions.create(
674
  model="hf:Nexusflow/Athene-V2-Chat",
675
  messages=[
676
+ {"role": "system", "content": "당신은 날씨 μ˜ˆλ³΄κ΄€μž…λ‹ˆλ‹€. μ£Όμ–΄μ§„ μ‹œκ°„λŒ€λ³„ 날씨 데이터λ₯Ό λ°”νƒ•μœΌλ‘œ μ •ν™•ν•œ 날씨 예보λ₯Ό μƒμ„±ν•΄μ£Όμ„Έμš”. FCST_DT의 μ‹œκ°„μ€ 24μ‹œκ°„μ œλ‘œ ν‘œμ‹œλ©λ‹ˆλ‹€ (예: 1900은 저녁 7μ‹œμž…λ‹ˆλ‹€)."},
677
  {"role": "user", "content": f"""ν˜„μž¬ μ‹œκ°μ€ {current_time.strftime('%Hμ‹œ %MλΆ„')}μž…λ‹ˆλ‹€.
678
 
679
  λ‹€μŒ FCST_DT의 μ‹œκ°„λŒ€λ³„ 날씨 데이터λ₯Ό 보고 μ‹€μ œ 날씨 상황에 λ§žλŠ” μ •ν™•ν•œ 날씨 예보λ₯Ό 200자의 μžμ—°μŠ€λŸ¬μš΄ λ¬Έμž₯으둜 λ§Œλ“€μ–΄μ£Όμ„Έμš”. λΉ„λ‚˜ 눈 μ˜ˆλ³΄κ°€ μžˆλŠ” κ²½μš°μ—λ§Œ μš°μ‚°μ„ μ€€λΉ„ν•˜λ„λ‘ μ•ˆλ‚΄ν•΄μ£Όμ„Έμš”. μ˜·μ°¨λ¦Όμ€ λ‹€μŒμ„ μ°Έκ³ ν•˜μ„Έμš”.