Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -139,8 +139,7 @@ with gr.Blocks(theme='WeixuanYuan/Soft_dark') as demo:
|
|
| 139 |
show_copy_button=True,
|
| 140 |
show_share_button=True,
|
| 141 |
)
|
| 142 |
-
|
| 143 |
-
|
| 144 |
with gr.Row():
|
| 145 |
txt = gr.Textbox(
|
| 146 |
scale=3,
|
|
@@ -152,8 +151,8 @@ with gr.Blocks(theme='WeixuanYuan/Soft_dark') as demo:
|
|
| 152 |
|
| 153 |
api_kind = gr.Radio(choices=["HuggingFace","Gemini"], value="HuggingFace")
|
| 154 |
|
| 155 |
-
prompt_html = gr.HTML()
|
| 156 |
-
|
| 157 |
try:
|
| 158 |
# Turn off interactivity while generating if you click
|
| 159 |
txt_msg = txt_btn.click(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
|
|
|
|
| 139 |
show_copy_button=True,
|
| 140 |
show_share_button=True,
|
| 141 |
)
|
| 142 |
+
|
|
|
|
| 143 |
with gr.Row():
|
| 144 |
txt = gr.Textbox(
|
| 145 |
scale=3,
|
|
|
|
| 151 |
|
| 152 |
api_kind = gr.Radio(choices=["HuggingFace","Gemini"], value="HuggingFace")
|
| 153 |
|
| 154 |
+
#prompt_html = gr.HTML()
|
| 155 |
+
prompt_html = gr.Textbox()
|
| 156 |
try:
|
| 157 |
# Turn off interactivity while generating if you click
|
| 158 |
txt_msg = txt_btn.click(add_text, [chatbot, txt], [chatbot, txt], queue=False).then(
|