prithivMLmods commited on
Commit
3234fc5
·
verified ·
1 Parent(s): 4cfc4d9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -226,6 +226,16 @@ def generate(input_dict: dict, chat_history: list[dict],
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,6 +252,7 @@ demo = gr.ChatInterface(
242
  textbox=gr.MultimodalTextbox(label="Query Input", file_types=["image", "video"], file_count="multiple"),
243
  stop_btn="Stop Generation",
244
  multimodal=True,
 
245
  )
246
 
247
  if __name__ == "__main__":
 
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
  textbox=gr.MultimodalTextbox(label="Query Input", file_types=["image", "video"], file_count="multiple"),
253
  stop_btn="Stop Generation",
254
  multimodal=True,
255
+ css=custom_css,
256
  )
257
 
258
  if __name__ == "__main__":