prithivMLmods commited on
Commit
03c4db3
·
verified ·
1 Parent(s): f87968d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -20
app.py CHANGED
@@ -24,24 +24,6 @@ from transformers import (
24
  from transformers.image_utils import load_image
25
  from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
26
 
27
- DESCRIPTION = """
28
- # QwQ Edge 💬
29
- """
30
-
31
- css = '''
32
- h1 {
33
- text-align: center;
34
- display: block;
35
- }
36
-
37
- #duplicate-button {
38
- margin: auto;
39
- color: #fff;
40
- background: #1565c0;
41
- border-radius: 100vh;
42
- }
43
- '''
44
-
45
  MAX_MAX_NEW_TOKENS = 2048
46
  DEFAULT_MAX_NEW_TOKENS = 1024
47
  MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
@@ -405,8 +387,7 @@ demo = gr.ChatInterface(
405
  ],
406
  cache_examples=False,
407
  type="messages",
408
- description=DESCRIPTION,
409
- css=css,
410
  fill_height=True,
411
  textbox=gr.MultimodalTextbox(label="Query Input", file_types=["image", "video"], file_count="multiple", placeholder="‎ @tts1, @tts2-voices, @image for image gen, @qwen2vl-video for video, default [text, vision]"),
412
  stop_btn="Stop Generation",
 
24
  from transformers.image_utils import load_image
25
  from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
26
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  MAX_MAX_NEW_TOKENS = 2048
28
  DEFAULT_MAX_NEW_TOKENS = 1024
29
  MAX_INPUT_TOKEN_LENGTH = int(os.getenv("MAX_INPUT_TOKEN_LENGTH", "4096"))
 
387
  ],
388
  cache_examples=False,
389
  type="messages",
390
+ description="# **QwQ Edge `@qwen2vl-video 'prompt..', @image, @tts1`**",
 
391
  fill_height=True,
392
  textbox=gr.MultimodalTextbox(label="Query Input", file_types=["image", "video"], file_count="multiple", placeholder="‎ @tts1, @tts2-voices, @image for image gen, @qwen2vl-video for video, default [text, vision]"),
393
  stop_btn="Stop Generation",