ClownRat commited on
Commit
41491b0
•
1 Parent(s): 2c2d48f

Support high version gradio.

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -7,7 +7,6 @@ import torch
7
  import tempfile
8
  import gradio as gr
9
  from PIL import Image
10
- from fastapi import FastAPI
11
 
12
  import sys
13
  sys.path.append('./')
@@ -227,8 +226,6 @@ if __name__ == '__main__':
227
  if not os.path.exists("temp"):
228
  os.makedirs("temp")
229
 
230
- app = FastAPI()
231
-
232
  textbox = gr.Textbox(
233
  show_label=False, placeholder="Enter text and press ENTER", container=False
234
  )
@@ -265,7 +262,7 @@ if __name__ == '__main__':
265
  )
266
 
267
  with gr.Column(scale=7):
268
- chatbot = gr.Chatbot(label="VideoLLaMA2", bubble_full_width=True).style(height=750)
269
  with gr.Row():
270
  with gr.Column(scale=8):
271
  textbox.render()
 
7
  import tempfile
8
  import gradio as gr
9
  from PIL import Image
 
10
 
11
  import sys
12
  sys.path.append('./')
 
226
  if not os.path.exists("temp"):
227
  os.makedirs("temp")
228
 
 
 
229
  textbox = gr.Textbox(
230
  show_label=False, placeholder="Enter text and press ENTER", container=False
231
  )
 
262
  )
263
 
264
  with gr.Column(scale=7):
265
+ chatbot = gr.Chatbot(label="VideoLLaMA2", bubble_full_width=True, height=750)
266
  with gr.Row():
267
  with gr.Column(scale=8):
268
  textbox.render()