Spaces:
Runtime error
Runtime error
Commit
·
7b87153
1
Parent(s):
23fc488
Update app.py
Browse files
app.py
CHANGED
@@ -22,30 +22,13 @@ with gr.Blocks() as demo:
|
|
22 |
with open("./logo.png", "rb") as f:
|
23 |
image_data = f.read()
|
24 |
image_base64 = base64.b64encode(image_data).decode("utf-8")
|
25 |
-
|
26 |
-
<h2 style="background-image: linear-gradient(to right, #3A5FCD, #87CEFA); -webkit-background-clip: text;
|
27 |
-
-webkit-text-fill-color: transparent; text-align: center;">
|
28 |
-
Fashion Aggregator
|
29 |
-
</h2>
|
30 |
-
"""
|
31 |
-
description = f"""
|
32 |
-
<div style="display: flex; align-items: center; justify-content: center; flex-direction: column;">
|
33 |
-
<p style="font-size: 18px; color: #4AAAFF; text-align: center;">
|
34 |
-
Discover your perfect apparel effortlessly. Simply describe what you're looking for!
|
35 |
-
</p>
|
36 |
-
<div style="display: flex; align-items: center; margin-bottom: 0px;">
|
37 |
-
<img src='data:image/jpeg;base64,{image_base64}' width='50' height='30' style="margin-right: 5px;"/>
|
38 |
-
<p style="font-size: 14px; color: #555;">
|
39 |
-
Disclaimer: The purpose of this application is solely for demonstration. 1001epochs does not claim ownership for the results. Contact: [email protected] for full solution.
|
40 |
-
</p>
|
41 |
-
</div>
|
42 |
-
</div>
|
43 |
gr.Markdown(
|
44 |
"""
|
45 |
# CHATGPT-PAPER-READER
|
46 |
""")
|
47 |
gr.HTML(vlaue= f"""<h2 style="background-image: linear-gradient(to right, #3A5FCD, #87CEFA); -webkit-background-clip: text;-webkit-text-fill-color: transparent; text-align: center;">Fashion Aggregator</h2>""")
|
48 |
-
gr.HTML(value=
|
49 |
with gr.Tab("Upload PDF File"):
|
50 |
pdf_input = gr.File(label="PDF File")
|
51 |
api_input = gr.Textbox(label="OpenAI API Key")
|
|
|
22 |
with open("./logo.png", "rb") as f:
|
23 |
image_data = f.read()
|
24 |
image_base64 = base64.b64encode(image_data).decode("utf-8")
|
25 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
gr.Markdown(
|
27 |
"""
|
28 |
# CHATGPT-PAPER-READER
|
29 |
""")
|
30 |
gr.HTML(vlaue= f"""<h2 style="background-image: linear-gradient(to right, #3A5FCD, #87CEFA); -webkit-background-clip: text;-webkit-text-fill-color: transparent; text-align: center;">Fashion Aggregator</h2>""")
|
31 |
+
gr.HTML(value= f"""<div style="display: flex; align-items: center; justify-content: center; flex-direction: column;"><p style="font-size: 18px; color: #4AAAFF; text-align: center;">Discover your perfect apparel effortlessly. Simply describe what you're looking for!</p><div style="display: flex; align-items: center; margin-bottom: 0px;"><img src='data:image/jpeg;base64,{image_base64}' width='50' height='30' style="margin-right: 5px;"/><p style="font-size: 14px; color: #555;">Disclaimer: The purpose of this application is solely for demonstration. 1001epochs does not claim ownership for the results. Contact: [email protected] for full solution.</p></div></div>""")
|
32 |
with gr.Tab("Upload PDF File"):
|
33 |
pdf_input = gr.File(label="PDF File")
|
34 |
api_input = gr.Textbox(label="OpenAI API Key")
|