epochs-demos commited on
Commit
f6603df
·
1 Parent(s): 48d041f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -12
app.py CHANGED
@@ -24,13 +24,6 @@ with gr.Blocks() as demo:
24
  """
25
  # CHATGPT-PAPER-READER
26
  """)
27
- with open("./logo.png", "rb") as f:
28
- image_data = f.read()
29
- image_base64 = base64.b64encode(image_data).decode("utf-8")
30
-
31
- 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>""")
32
- 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: contact@1001epochs.co.uk for full solution.</p></div></div>""")
33
- with gr.Tab("Upload PDF File"):
34
  pdf_input = gr.File(label="PDF File")
35
  api_input = gr.Textbox(label="OpenAI API Key")
36
  result = gr.Textbox(label="PDF Summary")
@@ -41,11 +34,7 @@ with gr.Blocks() as demo:
41
  ask_button = gr.Button("Ask")
42
  with gr.Accordion("About this project"):
43
  gr.Markdown(
44
- """## CHATGPT-PAPER-READER📝
45
- This repository provides a simple interface that utilizes the gpt-3.5-turbo
46
- model to read academic papers in PDF format locally. You can use it to help you summarize papers,
47
- create presentation slides, or simply fulfill tasks assigned by your supervisor.\n
48
- [Github](https://github.com/talkingwallace/ChatGPT-Paper-Reader)""")
49
 
50
  app = GUI()
51
  upload_button.click(fn=app.analyse, inputs=[api_input, pdf_input], outputs=result)
 
24
  """
25
  # CHATGPT-PAPER-READER
26
  """)
 
 
 
 
 
 
 
27
  pdf_input = gr.File(label="PDF File")
28
  api_input = gr.Textbox(label="OpenAI API Key")
29
  result = gr.Textbox(label="PDF Summary")
 
34
  ask_button = gr.Button("Ask")
35
  with gr.Accordion("About this project"):
36
  gr.Markdown(
37
+ """ Simply upload your document and let our model read it within seconds!""")
 
 
 
 
38
 
39
  app = GUI()
40
  upload_button.click(fn=app.analyse, inputs=[api_input, pdf_input], outputs=result)