Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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} {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> {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μμ μμ°μ€λ¬μ΄ λ¬Έμ₯μΌλ‘ λ§λ€μ΄μ£ΌμΈμ. λΉλ λ μλ³΄κ° μλ κ²½μ°μλ§ μ°μ°μ μ€λΉνλλ‘ μλ΄ν΄μ£ΌμΈμ. μ·μ°¨λ¦Όμ λ€μμ μ°Έκ³ νμΈμ.
|