girishwangikar commited on
Commit
41d2d23
·
verified ·
1 Parent(s): f710c77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -2
app.py CHANGED
@@ -94,9 +94,26 @@ iface = gr.Interface(
94
  """
95
  )
96
 
97
- # Custom footer
98
  footer_html = """
99
  <footer>
100
  <p>If you enjoyed the functionality of the app, please leave a like!<br>
101
  Check out more on <a href="https://www.linkedin.com/in/girish-wangikar/" target="_blank">LinkedIn</a> |
102
- <a href="https://girishwangikar.github.io/Girish_Wangikar_Portfolio.github.io/" target="_blank">Portfolio</a></p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  """
95
  )
96
 
97
+ # Custom footer HTML
98
  footer_html = """
99
  <footer>
100
  <p>If you enjoyed the functionality of the app, please leave a like!<br>
101
  Check out more on <a href="https://www.linkedin.com/in/girish-wangikar/" target="_blank">LinkedIn</a> |
102
+ <a href="https://girishwangikar.github.io/Girish_Wangikar_Portfolio.github.io/" target="_blank">Portfolio</a></p>
103
+ </footer>
104
+ """
105
+ # Gradio interface
106
+ iface = gr.Interface(
107
+ fn=generate_knowledge_graph,
108
+ inputs=gr.Textbox(lines=10, placeholder="Enter your text here..."),
109
+ outputs=gr.Plot(),
110
+ title="Knowledge Graph Generator",
111
+ description="Enter text to generate a knowledge graph.",
112
+ theme="default",
113
+ css=custom_css,
114
+ article=footer_html
115
+ )
116
+
117
+ # Launch the interface
118
+ if __name__ == "__main__":
119
+ iface.launch()