AskMe / app.py
Xinyu Wang
add title and description.
1816df7
raw
history blame contribute delete
647 Bytes
import random
import gradio as gr
def response(message, history):
if "ε—οΌŸ" in message:
response_text_tmp = message.replace("ε—οΌŸ", "!")
if "ζˆ‘" in response_text_tmp:
response_text = response_text_tmp.replace("ζˆ‘", "δ½ ")
else:
response_text=response_text_tmp
else:
responses = ["I'm not sure.", "Interesting.", "Tell me more!"]
response_text = random.choice(responses)
return response_text
demo = gr.ChatInterface(
response,
title="Please Ask Me",
description="Only the Yes-no question with ε—οΌŸ, can I give u certain answer!",
)
demo.launch()