Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ def user(message, chat_history):
|
|
| 59 |
# Bot response handler
|
| 60 |
def bot(chat_history, max_tokens, temperature, top_p):
|
| 61 |
# Insert model name bubble and placeholder for output
|
| 62 |
-
chat_history.append([None, f"**{current_model_name}
|
| 63 |
chat_history.append([None, ""])
|
| 64 |
# Render model name immediately
|
| 65 |
yield chat_history
|
|
@@ -76,7 +76,7 @@ def update_model(model_name):
|
|
| 76 |
return []
|
| 77 |
|
| 78 |
# Gradio UI
|
| 79 |
-
with gr.Blocks(
|
| 80 |
with gr.Row():
|
| 81 |
gr.HTML("""
|
| 82 |
<div style="text-align: center; width: 100%;">
|
|
|
|
| 59 |
# Bot response handler
|
| 60 |
def bot(chat_history, max_tokens, temperature, top_p):
|
| 61 |
# Insert model name bubble and placeholder for output
|
| 62 |
+
chat_history.append([None, f"**Model:** {current_model_name}"])
|
| 63 |
chat_history.append([None, ""])
|
| 64 |
# Render model name immediately
|
| 65 |
yield chat_history
|
|
|
|
| 76 |
return []
|
| 77 |
|
| 78 |
# Gradio UI
|
| 79 |
+
with gr.Blocks(css=".gr-chatbot .message { margin: 2px 0 !important; }", title=$1) as demo:
|
| 80 |
with gr.Row():
|
| 81 |
gr.HTML("""
|
| 82 |
<div style="text-align: center; width: 100%;">
|