Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,10 +10,10 @@ API_URL = "https://api-inference.huggingface.co/models/goofyai/3d_render_style_x
|
|
10 |
headers = {"Authorization": f"Bearer {hf_token}"}
|
11 |
|
12 |
st.title("π AI Browser")
|
13 |
-
st.write("Browser that gives results using ai")
|
14 |
prompt = st.text_input("Search something", placeholder="Enter search query")
|
15 |
search_btn = st.button("Search")
|
16 |
-
texts, images = st.tabs(["All", "Images"])
|
17 |
|
18 |
def query(payload):
|
19 |
response = requests.post(API_URL, headers=headers, json=payload)
|
@@ -57,8 +57,8 @@ if search_btn:
|
|
57 |
st.caption("That's the end!")
|
58 |
|
59 |
with images:
|
60 |
-
im1, im2, im3 = st.columns(3)
|
61 |
st.write("We found some images on your query: ")
|
|
|
62 |
with im1:
|
63 |
st.image(imageresult1)
|
64 |
with im2:
|
|
|
10 |
headers = {"Authorization": f"Bearer {hf_token}"}
|
11 |
|
12 |
st.title("π AI Browser")
|
13 |
+
st.write("Browser that gives results using ai. Warimg. It may took a while to generate answer")
|
14 |
prompt = st.text_input("Search something", placeholder="Enter search query")
|
15 |
search_btn = st.button("Search")
|
16 |
+
texts, images = st.tabs(["All results", "Images"])
|
17 |
|
18 |
def query(payload):
|
19 |
response = requests.post(API_URL, headers=headers, json=payload)
|
|
|
57 |
st.caption("That's the end!")
|
58 |
|
59 |
with images:
|
|
|
60 |
st.write("We found some images on your query: ")
|
61 |
+
im1, im2, im3 = st.columns(3)
|
62 |
with im1:
|
63 |
st.image(imageresult1)
|
64 |
with im2:
|