Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -109,13 +109,13 @@ with st.container():
|
|
| 109 |
|
| 110 |
if __name__ == "__main__":
|
| 111 |
gr.Interface(
|
| 112 |
-
|
| 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 |
|