Spaces:
Sleeping
Sleeping
abubasith86
commited on
Commit
·
6982b56
1
Parent(s):
c06c126
issue
Browse files
app.py
CHANGED
@@ -43,7 +43,6 @@ def respond(
|
|
43 |
max_tokens,
|
44 |
temperature,
|
45 |
top_p,
|
46 |
-
pdf_file=None,
|
47 |
):
|
48 |
|
49 |
messages = [{"role": "system", "content": SYSTEM_PROMPT}]
|
@@ -86,10 +85,9 @@ demo = gr.ChatInterface(
|
|
86 |
step=0.05,
|
87 |
label="Top-p (nucleus sampling)",
|
88 |
),
|
89 |
-
gr.File(label="Upload a PDF", file_types=[".pdf"]),
|
90 |
],
|
91 |
)
|
92 |
|
93 |
|
94 |
if __name__ == "__main__":
|
95 |
-
demo.launch(
|
|
|
43 |
max_tokens,
|
44 |
temperature,
|
45 |
top_p,
|
|
|
46 |
):
|
47 |
|
48 |
messages = [{"role": "system", "content": SYSTEM_PROMPT}]
|
|
|
85 |
step=0.05,
|
86 |
label="Top-p (nucleus sampling)",
|
87 |
),
|
|
|
88 |
],
|
89 |
)
|
90 |
|
91 |
|
92 |
if __name__ == "__main__":
|
93 |
+
demo.launch()
|