Spaces:
Runtime error
Runtime error
aakash0563
commited on
Commit
•
4dfc3a9
1
Parent(s):
6e95f9f
Update app.py
Browse files
app.py
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
-
|
4 |
|
5 |
import gradio as gr
|
6 |
|
7 |
def select_action(upload_pdf, query_question):
|
8 |
if upload_pdf:
|
9 |
# Implement code for handling PDF upload
|
10 |
-
return
|
11 |
elif query_question:
|
12 |
# Implement code for handling question query
|
13 |
-
return
|
14 |
else:
|
15 |
return "Please select at least one action."
|
16 |
|
|
|
1 |
import gradio as gr
|
2 |
+
|
3 |
+
|
4 |
|
5 |
import gradio as gr
|
6 |
|
7 |
def select_action(upload_pdf, query_question):
|
8 |
if upload_pdf:
|
9 |
# Implement code for handling PDF upload
|
10 |
+
return import upload_pdf
|
11 |
elif query_question:
|
12 |
# Implement code for handling question query
|
13 |
+
return import query
|
14 |
else:
|
15 |
return "Please select at least one action."
|
16 |
|