Spaces:
Sleeping
Sleeping
th8m0z
commited on
Commit
·
71b98c7
1
Parent(s):
bc9f64b
file renaming issues fixed
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import gradio as gr
|
2 |
-
import
|
3 |
|
4 |
# pre-defined questions
|
5 |
questions = [
|
@@ -60,7 +60,7 @@ with gr.Blocks(css="""#chatbot { font-size: 14px; min-height: 1200; }""") as dem
|
|
60 |
|
61 |
# Bind the click event of the button to the question_answer function
|
62 |
btn.click(
|
63 |
-
|
64 |
inputs=[chatbot, url, files, question, openAI_key, model],
|
65 |
outputs=[chatbot],
|
66 |
)
|
|
|
1 |
import gradio as gr
|
2 |
+
import functions as functions
|
3 |
|
4 |
# pre-defined questions
|
5 |
questions = [
|
|
|
60 |
|
61 |
# Bind the click event of the button to the question_answer function
|
62 |
btn.click(
|
63 |
+
functions.question_answer,
|
64 |
inputs=[chatbot, url, files, question, openAI_key, model],
|
65 |
outputs=[chatbot],
|
66 |
)
|