msy127 commited on
Commit
637fa83
·
1 Parent(s): 8aa4944

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -21
app.py CHANGED
@@ -1,28 +1,9 @@
1
  import gradio as gr
2
 
3
- chatbot_stream = gr.Chatbot(avatar_images=('user.png', 'bot2.png'), bubble_full_width = False)
4
- chat_interface_stream = gr.ChatInterface(
5
- chatbot=chatbot_stream)
6
-
7
  with gr.Blocks() as demo:
8
  with gr.Tab("llama2 official chatbot"):
9
- gr.load("ysharma/Explore_llamav2_with_TGI", chatbot_stream, src="spaces")
10
- chat_interface_stream.render()
11
  with gr.Tab("another"):
12
  gr.load("AP123/IllusionDiffusion", src="spaces")
13
 
14
- demo.launch()
15
-
16
-
17
- # 그라디오
18
-
19
-
20
- # Gradio Demo
21
- # with gr.Blocks() as demo:
22
-
23
- # with gr.Tab("Streaming"):
24
- # # gr.ChatInterface(predict, title=title, description=description, css=css, examples=examples, cache_examples=False, additional_inputs=additional_inputs,)
25
- # chatbot_stream.like(vote, None, None)
26
- # chat_interface_stream.render()
27
-
28
- # demo.queue(concurrency_count=75, max_size=100).launch(debug=True)
 
1
  import gradio as gr
2
 
 
 
 
 
3
  with gr.Blocks() as demo:
4
  with gr.Tab("llama2 official chatbot"):
5
+ gr.load("ysharma/Explore_llamav2_with_TGI", , src="spaces")
 
6
  with gr.Tab("another"):
7
  gr.load("AP123/IllusionDiffusion", src="spaces")
8
 
9
+ demo.launch()