Nikhil0987 commited on
Commit
761c058
·
verified ·
1 Parent(s): 6807ee7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -109,13 +109,13 @@ with st.container():
109
 
110
  if __name__ == "__main__":
111
  gr.Interface(
112
- [render_first, add_text, generate_response, render_file],
113
- [
114
  "file", # Define pdf_upload1
115
  "text", # Define chatbot output
116
  "text" # Define txt
117
  ],
118
- [
119
  "image", # Define show_img
120
  "text", # Define chatbot output
121
  "text" # Define txt
@@ -123,7 +123,6 @@ if __name__ == "__main__":
123
  title="PDF-Powered Chatbot"
124
  ).launch()
125
 
126
-
127
 
128
 
129
 
 
109
 
110
  if __name__ == "__main__":
111
  gr.Interface(
112
+ fn=generate_response,
113
+ inputs=[
114
  "file", # Define pdf_upload1
115
  "text", # Define chatbot output
116
  "text" # Define txt
117
  ],
118
+ outputs=[
119
  "image", # Define show_img
120
  "text", # Define chatbot output
121
  "text" # Define txt
 
123
  title="PDF-Powered Chatbot"
124
  ).launch()
125
 
 
126
 
127
 
128