Upload src/app.py with huggingface_hub
Browse files- src/app.py +4 -3
src/app.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
| 2 |
import os, base64, json, requests
|
| 3 |
import streamlit as st
|
| 4 |
from openai import OpenAI
|
| 5 |
-
from PIL import Image
|
| 6 |
|
| 7 |
# OpenAI ํด๋ผ์ด์ธํธ ์์ฑ
|
| 8 |
client = OpenAI()
|
|
@@ -42,8 +42,9 @@ with col1:
|
|
| 42 |
|
| 43 |
#์คํจ์ ์์ธ์ฒ๋ฆฌ
|
| 44 |
except Exception as e:
|
| 45 |
-
st.error("์ด๋ฏธ์ง๋ฅผ ๋ถ๋ฌ์ฌ ์ ์์ต๋๋ค.
|
| 46 |
-
st.
|
|
|
|
| 47 |
|
| 48 |
#UI ์์ญ -col2 ๊ตฌ์ญ : ์ฑ๋ด ๊ธฐ๋ฅ
|
| 49 |
with col2:
|
|
|
|
| 2 |
import os, base64, json, requests
|
| 3 |
import streamlit as st
|
| 4 |
from openai import OpenAI
|
| 5 |
+
from PIL import Image
|
| 6 |
|
| 7 |
# OpenAI ํด๋ผ์ด์ธํธ ์์ฑ
|
| 8 |
client = OpenAI()
|
|
|
|
| 42 |
|
| 43 |
#์คํจ์ ์์ธ์ฒ๋ฆฌ
|
| 44 |
except Exception as e:
|
| 45 |
+
st.error("์ด๋ฏธ์ง๋ฅผ ๋ถ๋ฌ์ฌ ์ ์์ต๋๋ค.")
|
| 46 |
+
st.write(e)
|
| 47 |
+
st.write(img_path)
|
| 48 |
|
| 49 |
#UI ์์ญ -col2 ๊ตฌ์ญ : ์ฑ๋ด ๊ธฐ๋ฅ
|
| 50 |
with col2:
|