Spaces:
Paused
Paused
import gradio as gr | |
from Tabs.Gemini_Chabot_Stable import gemini_chatbot, clear_chat_button, undo_chat_button, clear_chat_history, undo_chat, TITLE, NOTICE, ERRORS, FUTURE_IMPLEMENTATIONS, ABOUT | |
with gr.Blocks(theme=gr.themes.Soft()) as demo: | |
# ============================== Stable - START ============================== | |
with gr.Tab("Chat with Gemini 1.5 Flash"): | |
gr.HTML(TITLE) | |
with gr.Row(): | |
gr.Markdown(NOTICE) | |
gr.Markdown(ABOUT) | |
gr.Markdown(ERRORS) | |
gr.Markdown(FUTURE_IMPLEMENTATIONS) | |
gemini_chatbot.render() | |
clear_chat_button.click( | |
fn=clear_chat_history | |
) | |
undo_chat_button.click( | |
fn=undo_chat | |
) | |
# ============================== Stable - END ============================== | |
with gr.Tab("Chat with Gemma 2"): | |
gr.HTML("""<h1 align="center">Still in development</h1>""") | |
# ============================== Nightly - START ============================== | |
with gr.Tab("Nightly -- Chat with Gemini 1.5"): | |
gr.HTML("""<h1 align="center">Still in development</h1>""") | |
# ============================== Nightly - END ============================== | |
demo.queue().launch(debug=True, show_error=True) | |