Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -226,16 +226,6 @@ def generate(input_dict: dict, chat_history: list[dict],
|
|
226 |
final_response = "".join(outputs)
|
227 |
yield final_response
|
228 |
|
229 |
-
custom_css = """
|
230 |
-
body { background-color: black; color: #00FF00; font-family: "Courier New", monospace; }
|
231 |
-
.gradio-container { background-color: black; }
|
232 |
-
textarea, input { background-color: #002400; color: #00FF00; border: 1px solid #00FF00; }
|
233 |
-
button { background-color: #004d00; color: #00FF00; border: 1px solid #00FF00; }
|
234 |
-
button:hover { background-color: #007a00; }
|
235 |
-
.progress { background-color: #003300; }
|
236 |
-
.slider { color: #00FF00; }
|
237 |
-
"""
|
238 |
-
|
239 |
# Create the Gradio ChatInterface with the custom CSS applied
|
240 |
demo = gr.ChatInterface(
|
241 |
fn=generate,
|
@@ -252,7 +242,7 @@ demo = gr.ChatInterface(
|
|
252 |
textbox=gr.MultimodalTextbox(label="Query Input", file_types=["image", "video"], file_count="multiple"),
|
253 |
stop_btn="Stop Generation",
|
254 |
multimodal=True,
|
255 |
-
|
256 |
)
|
257 |
|
258 |
if __name__ == "__main__":
|
|
|
226 |
final_response = "".join(outputs)
|
227 |
yield final_response
|
228 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
229 |
# Create the Gradio ChatInterface with the custom CSS applied
|
230 |
demo = gr.ChatInterface(
|
231 |
fn=generate,
|
|
|
242 |
textbox=gr.MultimodalTextbox(label="Query Input", file_types=["image", "video"], file_count="multiple"),
|
243 |
stop_btn="Stop Generation",
|
244 |
multimodal=True,
|
245 |
+
theme="YTheme/GMaterial",
|
246 |
)
|
247 |
|
248 |
if __name__ == "__main__":
|