Spaces:
Sleeping
Sleeping
apahilaj
commited on
Commit
·
0539dfa
1
Parent(s):
ad41b76
working but no chat layout
Browse files
app.py
CHANGED
@@ -82,8 +82,7 @@ def greet(question, pdf_file):
|
|
82 |
else:
|
83 |
return "No helpful answer found."
|
84 |
|
85 |
-
|
86 |
-
iface = gr.ChatInterface(greet)
|
87 |
iface.launch(share=True)
|
88 |
|
89 |
|
|
|
82 |
else:
|
83 |
return "No helpful answer found."
|
84 |
|
85 |
+
iface = gr.Interface(fn=greet, inputs=["text", "file"], outputs="text")
|
|
|
86 |
iface.launch(share=True)
|
87 |
|
88 |
|