Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def question_answering(context, question):
|
|
36 |
# choose the source with different tabs
|
37 |
tab1, tab2 = st.tabs(["Input text", "Upload File"])
|
38 |
|
39 |
-
|
40 |
# if type the text as input
|
41 |
with tab1:
|
42 |
# set the example
|
@@ -68,7 +68,7 @@ with tab1:
|
|
68 |
else:
|
69 |
question_answering(context, question)
|
70 |
|
71 |
-
|
72 |
# if upload file as input
|
73 |
with tab2:
|
74 |
# provide upload place
|
|
|
36 |
# choose the source with different tabs
|
37 |
tab1, tab2 = st.tabs(["Input text", "Upload File"])
|
38 |
|
39 |
+
#---------- input text ----------
|
40 |
# if type the text as input
|
41 |
with tab1:
|
42 |
# set the example
|
|
|
68 |
else:
|
69 |
question_answering(context, question)
|
70 |
|
71 |
+
# ---------- upload file ----------
|
72 |
# if upload file as input
|
73 |
with tab2:
|
74 |
# provide upload place
|