Ali-C137 commited on
Commit
713ae7d
·
verified ·
1 Parent(s): ca23455

Update app_dialogue.py

Browse files
Files changed (1) hide show
  1. app_dialogue.py +2 -2
app_dialogue.py CHANGED
@@ -190,7 +190,7 @@ def extract_images_from_msg_list(msg_list):
190
 
191
 
192
  # comment this call of spaces.GPU later
193
- @spaces.GPU(duration=180)
194
  def model_inference(
195
  user_prompt,
196
  chat_history,
@@ -349,7 +349,7 @@ chatbot = gr.Chatbot(
349
  # css=""".gradio-container .avatar-container {height: 40px width: 40px !important;} #duplicate-button {margin: auto; color: white; background: #f1a139; border-radius: 100vh; margin-top: 2px; margin-bottom: 2px;}""",
350
  # ) as demo:
351
  with gr.Blocks(fill_height=True) as demo:
352
- gr.Markdown("# 🐶 YALLA ")
353
  # gr.Markdown("In this demo you'll be able to chat with YALLA, a variant of [Idefics2-8B](https://huggingface.co/HuggingFaceM4/idefics2-8b-chatty) further fine-tuned on chat datasets, and Moroccan culture 🇲🇦")
354
  # gr.Markdown("If you want to learn more about Idefics2 and its variants, you can check our [blog post](https://huggingface.co/blog/idefics2).")
355
  # gr.DuplicateButton(value="Duplicate Space for private use", elem_id="duplicate-button")
 
190
 
191
 
192
  # comment this call of spaces.GPU later
193
+ @spaces.GPU(duration=60, queue=False)
194
  def model_inference(
195
  user_prompt,
196
  chat_history,
 
349
  # css=""".gradio-container .avatar-container {height: 40px width: 40px !important;} #duplicate-button {margin: auto; color: white; background: #f1a139; border-radius: 100vh; margin-top: 2px; margin-bottom: 2px;}""",
350
  # ) as demo:
351
  with gr.Blocks(fill_height=True) as demo:
352
+ gr.Markdown("# 🇲🇦 YALLA ")
353
  # gr.Markdown("In this demo you'll be able to chat with YALLA, a variant of [Idefics2-8B](https://huggingface.co/HuggingFaceM4/idefics2-8b-chatty) further fine-tuned on chat datasets, and Moroccan culture 🇲🇦")
354
  # gr.Markdown("If you want to learn more about Idefics2 and its variants, you can check our [blog post](https://huggingface.co/blog/idefics2).")
355
  # gr.DuplicateButton(value="Duplicate Space for private use", elem_id="duplicate-button")