Spaces:
Building
Building
Commit
·
02b7135
1
Parent(s):
de92867
Update app.py
Browse files
app.py
CHANGED
@@ -44,9 +44,9 @@ def generate_chat(prompt: str, chat_messages=chat_history):
|
|
44 |
print(f"Bot Message:\n{result}\n")
|
45 |
return result
|
46 |
|
47 |
-
with gr.Blocks(
|
48 |
chatbot = gr.Chatbot(height=500)
|
49 |
-
msg = gr.Textbox(label="",
|
50 |
clear = gr.Button("Clear")
|
51 |
|
52 |
def user(user_message, history):
|
@@ -67,7 +67,7 @@ with gr.Blocks(theme='HaleyCH/HaleyCH_Theme') as app:
|
|
67 |
|
68 |
gr.Markdown(
|
69 |
f"""
|
70 |
-
Hosted on
|
71 |
""")
|
72 |
|
73 |
app.queue()
|
|
|
44 |
print(f"Bot Message:\n{result}\n")
|
45 |
return result
|
46 |
|
47 |
+
with gr.Blocks() as app:
|
48 |
chatbot = gr.Chatbot(height=500)
|
49 |
+
msg = gr.Textbox(label="", value="Hi Gerard, can you introduce yourself?")
|
50 |
clear = gr.Button("Clear")
|
51 |
|
52 |
def user(user_message, history):
|
|
|
67 |
|
68 |
gr.Markdown(
|
69 |
f"""
|
70 |
+
Hosted on 🤗 Spaces. Powered by Gradio & Google PaLM.
|
71 |
""")
|
72 |
|
73 |
app.queue()
|