arad1367 commited on
Commit
ab6e320
1 Parent(s): 0c9f542

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -30,15 +30,26 @@ def generate_response(image, question):
30
  generated_text += new_text
31
  return generated_text
32
 
 
 
 
 
 
 
 
 
 
 
33
 
34
  # Create a Gradio interface
35
  iface = gr.Interface(
36
  fn=generate_response,
37
  inputs=[gr.Image(type="pil"), "text"],
38
  outputs="text",
39
- title="Visual Question Answering - Financial charts analysis",
40
  description="Input an image and a question related to the image to receive a response.",
41
- theme='abidlabs/dracula_revamped'
 
42
  )
43
 
44
  # Launch the app
 
30
  generated_text += new_text
31
  return generated_text
32
 
33
+ # Create the footer with links
34
+ footer = """
35
+ <div style="text-align: center; margin-top: 20px;">
36
+ <a href="https://www.linkedin.com/in/pejman-ebrahimi-4a60151a7/" target="_blank">My LinkedIn</a> |
37
+ <a href="https://github.com/arad1367/Visual_QA_MiniCPM-Llama3-V-2_5_GradioApp" target="_blank">My GitHub</a> |
38
+ <a href="https://arad1367.pythonanywhere.com/home" target="_blank">My PhD defense website</a>
39
+ <br>
40
+ Made with 💖 by Pejman Ebrahimi
41
+ </div>
42
+ """
43
 
44
  # Create a Gradio interface
45
  iface = gr.Interface(
46
  fn=generate_response,
47
  inputs=[gr.Image(type="pil"), "text"],
48
  outputs="text",
49
+ title="Visual Question Answering - Charts analysis and complete image analysis",
50
  description="Input an image and a question related to the image to receive a response.",
51
+ theme='abidlabs/dracula_revamped',
52
+ footer=gr.HTML(footer)
53
  )
54
 
55
  # Launch the app