Spaces:
Running
Running
Emmanuel Acheampong commited on
Commit Β·
fce7a72
1
Parent(s): 0f59a0b
Fix Gradio compatability
Browse files- app.py +4 -8
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -257,11 +257,7 @@ css = """
|
|
| 257 |
footer { display: none !important; }
|
| 258 |
"""
|
| 259 |
|
| 260 |
-
with gr.Blocks(
|
| 261 |
-
title="Crusoe Foundry β Infinite Context Demo",
|
| 262 |
-
theme=gr.themes.Soft(primary_hue="blue"),
|
| 263 |
-
css=css,
|
| 264 |
-
) as demo:
|
| 265 |
|
| 266 |
# ββ Header ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 267 |
gr.HTML("""
|
|
@@ -303,7 +299,7 @@ with gr.Blocks(
|
|
| 303 |
placeholder="Document text will appear here after loadingβ¦",
|
| 304 |
)
|
| 305 |
with gr.Column(scale=2):
|
| 306 |
-
legal_chatbot = gr.Chatbot(label="Legal Q&A", height=420
|
| 307 |
with gr.Row():
|
| 308 |
legal_input = gr.Textbox(
|
| 309 |
placeholder="e.g. What are all indemnification carve-outs?",
|
|
@@ -375,7 +371,7 @@ with gr.Blocks(
|
|
| 375 |
placeholder="Loaded code will appear hereβ¦",
|
| 376 |
)
|
| 377 |
with gr.Column(scale=2):
|
| 378 |
-
dev_chatbot = gr.Chatbot(label="Codebase Q&A", height=420
|
| 379 |
with gr.Row():
|
| 380 |
dev_input = gr.Textbox(
|
| 381 |
placeholder="e.g. Where is the authentication logic and how does it work?",
|
|
@@ -503,4 +499,4 @@ with gr.Blocks(
|
|
| 503 |
|
| 504 |
|
| 505 |
if __name__ == "__main__":
|
| 506 |
-
demo.launch(show_api=False)
|
|
|
|
| 257 |
footer { display: none !important; }
|
| 258 |
"""
|
| 259 |
|
| 260 |
+
with gr.Blocks(title="Crusoe Foundry β Infinite Context Demo") as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 261 |
|
| 262 |
# ββ Header ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 263 |
gr.HTML("""
|
|
|
|
| 299 |
placeholder="Document text will appear here after loadingβ¦",
|
| 300 |
)
|
| 301 |
with gr.Column(scale=2):
|
| 302 |
+
legal_chatbot = gr.Chatbot(label="Legal Q&A", height=420)
|
| 303 |
with gr.Row():
|
| 304 |
legal_input = gr.Textbox(
|
| 305 |
placeholder="e.g. What are all indemnification carve-outs?",
|
|
|
|
| 371 |
placeholder="Loaded code will appear hereβ¦",
|
| 372 |
)
|
| 373 |
with gr.Column(scale=2):
|
| 374 |
+
dev_chatbot = gr.Chatbot(label="Codebase Q&A", height=420)
|
| 375 |
with gr.Row():
|
| 376 |
dev_input = gr.Textbox(
|
| 377 |
placeholder="e.g. Where is the authentication logic and how does it work?",
|
|
|
|
| 499 |
|
| 500 |
|
| 501 |
if __name__ == "__main__":
|
| 502 |
+
demo.launch(show_api=False, theme=gr.themes.Soft(primary_hue="blue"), css=css)
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
gradio>=
|
| 2 |
openai>=1.30.0
|
| 3 |
tiktoken>=0.7.0
|
| 4 |
pdfminer.six>=20221105
|
|
|
|
| 1 |
+
gradio>=6.0.0
|
| 2 |
openai>=1.30.0
|
| 3 |
tiktoken>=0.7.0
|
| 4 |
pdfminer.six>=20221105
|