dummy_chat_app / app.py
ysharma's picture
ysharma HF staff
Create app.py
5b77c66 verified
raw history blame
No virus
453 Bytes
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="https://huggingface.co/spaces/ysharma/CodeGemma/resolve/main/gemma_lockup_vertical_full-color_rgb.png" style="width:40%">
<b>CodeGemma-7B-IT</b>
"""
gr.ChatInterface(alternatingly_agree, placeholder=placeholder).launch()