ryanDing26
commited on
Commit
Β·
25ff751
1
Parent(s):
529eea4
Hope to fix
Browse files- app.py +8 -8
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -470,7 +470,6 @@ with gr.Blocks(title="HistoPath Agent", theme=custom_theme, css="""
|
|
| 470 |
height=550,
|
| 471 |
type="messages",
|
| 472 |
show_label=True,
|
| 473 |
-
avatar_images=(None, "π€"),
|
| 474 |
render_markdown=True,
|
| 475 |
)
|
| 476 |
|
|
@@ -589,14 +588,15 @@ if __name__ == "__main__":
|
|
| 589 |
print("=" * 60)
|
| 590 |
print("π¬ HistoPath Agent - Gradio Interface")
|
| 591 |
print("=" * 60)
|
| 592 |
-
print(f"Passcode: {PASSCODE}")
|
| 593 |
print("Starting server...")
|
| 594 |
print("=" * 60)
|
| 595 |
|
| 596 |
# Launch the app
|
| 597 |
-
demo.launch(
|
| 598 |
-
server_name="0.0.0.0",
|
| 599 |
-
server_port=
|
| 600 |
-
share=
|
| 601 |
-
show_error=True,
|
| 602 |
-
)
|
|
|
|
|
|
| 470 |
height=550,
|
| 471 |
type="messages",
|
| 472 |
show_label=True,
|
|
|
|
| 473 |
render_markdown=True,
|
| 474 |
)
|
| 475 |
|
|
|
|
| 588 |
print("=" * 60)
|
| 589 |
print("π¬ HistoPath Agent - Gradio Interface")
|
| 590 |
print("=" * 60)
|
| 591 |
+
# print(f"Passcode: {PASSCODE}")
|
| 592 |
print("Starting server...")
|
| 593 |
print("=" * 60)
|
| 594 |
|
| 595 |
# Launch the app
|
| 596 |
+
#demo.launch(
|
| 597 |
+
# server_name="0.0.0.0",
|
| 598 |
+
# server_port=7860, # Let Gradio auto-pick an available port
|
| 599 |
+
# share=True,
|
| 600 |
+
# show_error=True,
|
| 601 |
+
#)
|
| 602 |
+
demo.launch()
|
requirements.txt
CHANGED
|
@@ -3,7 +3,7 @@ requests
|
|
| 3 |
pandas
|
| 4 |
numpy
|
| 5 |
pydantic
|
| 6 |
-
gradio
|
| 7 |
|
| 8 |
# LangChain ecosystem
|
| 9 |
langchain
|
|
|
|
| 3 |
pandas
|
| 4 |
numpy
|
| 5 |
pydantic
|
| 6 |
+
gradio==4.4.1
|
| 7 |
|
| 8 |
# LangChain ecosystem
|
| 9 |
langchain
|