dummy_chat_app / app.py
ysharma's picture
ysharma HF staff
Update app.py
d1b24b3 verified
raw
history blame
No virus
772 Bytes
import gradio as gr
'''
with gr.Blocks() as demo:
with gr.Row():
gr.Image(value="gemma_lockup_vertical_full-color_rgb.png")
gr.Image(value="Meta_lockup_positive primary_RGB.png")
demo.launch()
'''
import random
#import gradio as gr
def alternatingly_agree(message, history):
if len(history) % 2 == 0:
return f"Yes, I do think that '{message}'"
else:
return "I don't think so"
placeholder = """
<img src="gemma_lockup_vertical_full-color_rgb.png" style="width:40%">
<b>CodeGemma-7B-IT</b>
"""
chat = gr.Chatbot(placeholder=placeholder)
with gr.Blocks() as demo:
#gr.Image(value="gemma_lockup_vertical_full-color_rgb.png")
gr.ChatInterface(alternatingly_agree, chatbot=chat, fill_height=True )
demo.launch()