openfree commited on
Commit
df610ed
ยท
verified ยท
1 Parent(s): f550b56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +27 -26
app.py CHANGED
@@ -656,33 +656,34 @@ with gr.Blocks(css=css, title="Vidraft-G3-27B ") as demo:
656
  visible=False # ํ™”๋ฉด์—์„œ ๊ฐ์ถค
657
  )
658
  # ์ฑ„ํŒ… ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ํ™”๋ฉด ์ „์ฒด ํญ์œผ๋กœ ์‚ฌ์šฉ
659
- chat = gr.ChatInterface(
660
- fn=run,
661
- type="messages",
662
- chatbot=gr.Chatbot(type="messages", scale=1, allow_tags=["image"]),
663
- textbox=gr.MultimodalTextbox(
664
- file_types=[
665
- ".webp", ".png", ".jpg", ".jpeg", ".gif",
666
- ".mp4", ".csv", ".txt", ".pdf"
667
- ],
668
- file_count="multiple",
669
- autofocus=True
670
- ),
671
- multimodal=True,
672
- additional_inputs=[
673
- system_prompt_box,
674
- max_tokens_slider,
675
- web_search_checkbox,
676
- web_search_text,
677
  ],
678
- stop_btn=False,
679
- title="https://discord.gg/openfreeai",
680
- examples=examples,
681
- run_examples_on_click=False,
682
- cache_examples=False,
683
- css_paths=None,
684
- delete_cache=(1800, 1800),
685
- )
 
 
 
 
 
 
 
 
 
 
686
 
687
  with gr.Row(elem_id="examples_row"):
688
  with gr.Column(scale=12, elem_id="examples_container"):
 
656
  visible=False # ํ™”๋ฉด์—์„œ ๊ฐ์ถค
657
  )
658
  # ์ฑ„ํŒ… ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ํ™”๋ฉด ์ „์ฒด ํญ์œผ๋กœ ์‚ฌ์šฉ
659
+ # ๋“ค์—ฌ์“ฐ๊ธฐ ์ˆ˜์ •
660
+ chat = gr.ChatInterface(
661
+ fn=run,
662
+ type="messages",
663
+ chatbot=gr.Chatbot(type="messages", scale=1, allow_tags=["image"]),
664
+ textbox=gr.MultimodalTextbox(
665
+ file_types=[
666
+ ".webp", ".png", ".jpg", ".jpeg", ".gif",
667
+ ".mp4", ".csv", ".txt", ".pdf"
 
 
 
 
 
 
 
 
 
668
  ],
669
+ file_count="multiple",
670
+ autofocus=True
671
+ ),
672
+ multimodal=True,
673
+ additional_inputs=[
674
+ system_prompt_box,
675
+ max_tokens_slider,
676
+ web_search_checkbox,
677
+ web_search_text,
678
+ ],
679
+ stop_btn=False,
680
+ title='<a href="https://discord.gg/openfreeai" target="_blank">https://discord.gg/openfreeai</a>',
681
+ examples=examples,
682
+ run_examples_on_click=False,
683
+ cache_examples=False,
684
+ css_paths=None,
685
+ delete_cache=(1800, 1800),
686
+ )
687
 
688
  with gr.Row(elem_id="examples_row"):
689
  with gr.Column(scale=12, elem_id="examples_container"):