Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -154,7 +154,7 @@ def chat(message, history):
|
|
154 |
gr.ChatInterface(
|
155 |
fn=chat,
|
156 |
chatbot=gr.Chatbot(height=350),
|
157 |
-
textbox=gr.
|
158 |
title="Python Code Generator",
|
159 |
description="The assistant can generate code, explain, fix, optimize, document, test, and generally help with code. It can also execute code.",
|
160 |
examples=[
|
@@ -166,4 +166,5 @@ gr.ChatInterface(
|
|
166 |
[f"Execute: Chart showing stock gain YTD for NVDA, MSFT, AAPL, and GOOG, x-axis is 'Day' and y-axis is 'YTD Gain %'"],
|
167 |
],
|
168 |
cache_examples=True,
|
|
|
169 |
).launch()
|
|
|
154 |
gr.ChatInterface(
|
155 |
fn=chat,
|
156 |
chatbot=gr.Chatbot(height=350),
|
157 |
+
textbox=gr.MultimodalTextbox(placeholder="Ask anything", container=False, scale=7),
|
158 |
title="Python Code Generator",
|
159 |
description="The assistant can generate code, explain, fix, optimize, document, test, and generally help with code. It can also execute code.",
|
160 |
examples=[
|
|
|
166 |
[f"Execute: Chart showing stock gain YTD for NVDA, MSFT, AAPL, and GOOG, x-axis is 'Day' and y-axis is 'YTD Gain %'"],
|
167 |
],
|
168 |
cache_examples=True,
|
169 |
+
multimodal=True,
|
170 |
).launch()
|