Spaces:
Runtime error
Runtime error
Commit ·
946610b
1
Parent(s): 2b91a1a
fixing iframe issue
Browse files
README.md
CHANGED
|
@@ -30,3 +30,8 @@ docker commad --> "docker run --rm -it ` -v ${PWD}:/home/user/app ` -w /home/use
|
|
| 30 |
"docker run --rm -it -p 8080:8080 ` -v ${PWD}:/home/user/app ` -w /home/user/app ` hodabass:latest sh"
|
| 31 |
|
| 32 |
pip install lxml_html_clean
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
"docker run --rm -it -p 8080:8080 ` -v ${PWD}:/home/user/app ` -w /home/user/app ` hodabass:latest sh"
|
| 31 |
|
| 32 |
pip install lxml_html_clean
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
docker run --rm -it -p 8080:8080 -v ${PWD}:/home/user/app -w /home/user/app hodabass5:latest sh
|
| 36 |
+
|
| 37 |
+
docker run --rm -it -p 8080:8080 -v ${PWD}:/home/user/app -w /home/user/app hodabass5:latest gradio app.py
|
app.log
CHANGED
|
@@ -54894,3 +54894,22 @@ For troubleshooting, visit: https://python.langchain.com/docs/troubleshooting/er
|
|
| 54894 |
2025-06-26 06:24:13:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54895 |
2025-06-26 06:26:07:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54896 |
2025-06-26 06:29:55:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54894 |
2025-06-26 06:24:13:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54895 |
2025-06-26 06:26:07:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54896 |
2025-06-26 06:29:55:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54897 |
+
2025-06-26 07:37:05:__main__:INFO: Starting the interface
|
| 54898 |
+
2025-06-26 07:37:29:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54899 |
+
2025-06-26 07:44:35:__main__:INFO: Starting the interface
|
| 54900 |
+
2025-06-26 07:46:35:__main__:INFO: Starting the interface
|
| 54901 |
+
2025-06-26 07:46:41:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54902 |
+
2025-06-26 07:51:09:__main__:INFO: Starting the interface
|
| 54903 |
+
2025-06-26 07:52:16:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54904 |
+
2025-06-26 07:55:19:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54905 |
+
2025-06-26 07:56:39:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54906 |
+
2025-06-26 07:57:35:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54907 |
+
2025-06-26 07:58:15:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54908 |
+
2025-06-26 07:58:17:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54909 |
+
2025-06-26 07:58:47:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54910 |
+
2025-06-26 08:03:13:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54911 |
+
2025-06-26 08:04:05:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54912 |
+
2025-06-26 08:08:58:__main__:INFO: Starting the interface
|
| 54913 |
+
2025-06-26 08:09:27:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54914 |
+
2025-06-26 08:10:31:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
| 54915 |
+
2025-06-26 08:10:50:__main__:INFO: Greeting added for new user via handle_initial_greeting_load.
|
app.py
CHANGED
|
@@ -377,10 +377,8 @@ def get_sorted_3d_model_examples():
|
|
| 377 |
|
| 378 |
|
| 379 |
CSS = """
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
}
|
| 383 |
-
footer {visibility: hidden}
|
| 384 |
.followup-question-button {font-size: 12px }
|
| 385 |
.chat-tab {
|
| 386 |
font-size: 12px;
|
|
@@ -397,32 +395,8 @@ footer {visibility: hidden}
|
|
| 397 |
padding-right: 0;
|
| 398 |
}
|
| 399 |
|
| 400 |
-
.sidebar-collapsed {
|
| 401 |
-
display: none !important;
|
| 402 |
-
}
|
| 403 |
-
|
| 404 |
-
html, body, #root, .gradio-container {
|
| 405 |
-
height: 100vh !important;
|
| 406 |
-
margin: 0;
|
| 407 |
-
padding: 0;
|
| 408 |
-
}
|
| 409 |
-
|
| 410 |
-
#main-app {
|
| 411 |
-
height: 100vh !important;
|
| 412 |
-
overflow-y: auto; /* optional if you want it scrollable */\
|
| 413 |
-
padding-top:2000px;
|
| 414 |
-
}
|
| 415 |
-
.gradio-container{
|
| 416 |
-
height:100%;
|
| 417 |
-
}
|
| 418 |
-
main{
|
| 419 |
-
height:100vh;
|
| 420 |
-
}
|
| 421 |
|
| 422 |
|
| 423 |
-
.fillable {
|
| 424 |
-
height: 100vh;
|
| 425 |
-
}
|
| 426 |
|
| 427 |
"""
|
| 428 |
|
|
@@ -466,7 +440,7 @@ function toggleSidebarVisibility() {
|
|
| 466 |
|
| 467 |
if __name__ == "__main__":
|
| 468 |
logger.info("Starting the interface")
|
| 469 |
-
with gr.Blocks(title="DIYO is here",
|
| 470 |
is_new_user_for_greeting = gr.State(True)
|
| 471 |
chatbot_message_storage = gr.State([])
|
| 472 |
current_prompt_state = gr.BrowserState(
|
|
@@ -525,7 +499,7 @@ if __name__ == "__main__":
|
|
| 525 |
</div>
|
| 526 |
""")
|
| 527 |
|
| 528 |
-
with gr.Row():
|
| 529 |
prompt_textbox = gr.Textbox(show_label=False, interactive=True)
|
| 530 |
|
| 531 |
with gr.Row():
|
|
@@ -542,7 +516,7 @@ if __name__ == "__main__":
|
|
| 542 |
label="Enable downloading text from urls",
|
| 543 |
scale=1,
|
| 544 |
)
|
| 545 |
-
with gr.Row():
|
| 546 |
with gr.Column(scale=2):
|
| 547 |
model_3d_output = gr.Model3D(
|
| 548 |
clear_color=[0.0, 0.0, 0.0, 0.0],
|
|
@@ -1012,7 +986,7 @@ if __name__ == "__main__":
|
|
| 1012 |
# demo.launch(server_name="0.0.0.0", server_port=7860, share=True)
|
| 1013 |
|
| 1014 |
# #*on docker container inside local host
|
| 1015 |
-
# demo.launch(server_name="0.0.0.0", server_port=8080, share=True)
|
| 1016 |
|
| 1017 |
#*in gradio space with docker
|
| 1018 |
demo.launch(height=1500)
|
|
|
|
| 377 |
|
| 378 |
|
| 379 |
CSS = """
|
| 380 |
+
|
| 381 |
+
footer {visibility: visible}
|
|
|
|
|
|
|
| 382 |
.followup-question-button {font-size: 12px }
|
| 383 |
.chat-tab {
|
| 384 |
font-size: 12px;
|
|
|
|
| 395 |
padding-right: 0;
|
| 396 |
}
|
| 397 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 398 |
|
| 399 |
|
|
|
|
|
|
|
|
|
|
| 400 |
|
| 401 |
"""
|
| 402 |
|
|
|
|
| 440 |
|
| 441 |
if __name__ == "__main__":
|
| 442 |
logger.info("Starting the interface")
|
| 443 |
+
with gr.Blocks(title="DIYO is here", css=CSS, elem_id="main-app") as demo:
|
| 444 |
is_new_user_for_greeting = gr.State(True)
|
| 445 |
chatbot_message_storage = gr.State([])
|
| 446 |
current_prompt_state = gr.BrowserState(
|
|
|
|
| 499 |
</div>
|
| 500 |
""")
|
| 501 |
|
| 502 |
+
with gr.Row(elem_id="system-prompt-input"):
|
| 503 |
prompt_textbox = gr.Textbox(show_label=False, interactive=True)
|
| 504 |
|
| 505 |
with gr.Row():
|
|
|
|
| 516 |
label="Enable downloading text from urls",
|
| 517 |
scale=1,
|
| 518 |
)
|
| 519 |
+
with gr.Row(height=1000):
|
| 520 |
with gr.Column(scale=2):
|
| 521 |
model_3d_output = gr.Model3D(
|
| 522 |
clear_color=[0.0, 0.0, 0.0, 0.0],
|
|
|
|
| 986 |
# demo.launch(server_name="0.0.0.0", server_port=7860, share=True)
|
| 987 |
|
| 988 |
# #*on docker container inside local host
|
| 989 |
+
# demo.launch(height=1500,server_name="0.0.0.0", server_port=8080, share=True)
|
| 990 |
|
| 991 |
#*in gradio space with docker
|
| 992 |
demo.launch(height=1500)
|
removed css
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#system-prompt-input{
|
| 2 |
+
height:200px;
|
| 3 |
+
}
|
| 4 |
+
.gradio-container{
|
| 5 |
+
height:100%;
|
| 6 |
+
}
|
| 7 |
+
main{
|
| 8 |
+
height:100vh;
|
| 9 |
+
}
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
.fillable {
|
| 13 |
+
height: 100vh;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
#system-prompt-input{
|
| 17 |
+
height:200px;
|
| 18 |
+
}
|
| 19 |
+
.gradio-container{
|
| 20 |
+
height:100%;
|
| 21 |
+
}
|
| 22 |
+
main{
|
| 23 |
+
height:100vh;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
.fillable {
|
| 28 |
+
height: 100vh;
|
| 29 |
+
}
|