Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -434,32 +434,16 @@ my_chatbot = gr.Chatbot(
|
|
434 |
layout="panel",
|
435 |
)
|
436 |
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
)
|
449 |
-
|
450 |
-
with gr.Blocks() as video:
|
451 |
-
gr.HTML("<iframe frameBorder='0' width='1000' height='2400' src='https://blog.liquide.life/'></iframe>")
|
452 |
-
with gr.Blocks() as cap:
|
453 |
-
iframe_html = """
|
454 |
-
<div style="position: relative; width: 100%; height: 100vh; overflow: hidden;">
|
455 |
-
<iframe src='https://www.equitypandit.com/technical-chart/HDFCBANK' frameborder='0' style='width: 133.33%; height: 133.33vh; transform: scale(0.75); transform-origin: top left;'></iframe>
|
456 |
-
</div>
|
457 |
-
"""
|
458 |
-
|
459 |
-
gr.HTML(iframe_html)
|
460 |
-
|
461 |
-
with gr.Blocks() as demo:
|
462 |
-
gr.TabbedInterface([chat,cap,video], ['Chatbot','Technical Charts','Blogs'])
|
463 |
-
|
464 |
|
465 |
demo.queue(max_size=10).launch(show_api=False)
|
|
|
434 |
layout="panel",
|
435 |
)
|
436 |
|
437 |
+
gr.ChatInterface(
|
438 |
+
fn=generate_final_response,
|
439 |
+
chatbot=my_chatbot,
|
440 |
+
title='<span style="font-family: Helvetica; font-size: 40px; color: green;">StockX</span>',
|
441 |
+
theme=theme,
|
442 |
+
js= js_func,
|
443 |
+
css = """.gradio-container {
|
444 |
+
background-image: url('https://mir-s3-cdn-cf.behance.net/project_modules/fs/0aedc9198093791.663b755706aac.jpg');
|
445 |
+
background-size: auto;
|
446 |
+
}"""
|
447 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
448 |
|
449 |
demo.queue(max_size=10).launch(show_api=False)
|