NAME commited on
Commit
a4d3440
·
1 Parent(s): f4ed285

Add application file

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import gradio as gr
2
  from transformers import Qwen2VLForConditionalGeneration, AutoProcessor, AutoModelForCausalLM, AutoTokenizer
3
  import torch
@@ -125,4 +126,4 @@ with gr.Blocks() as app:
125
  clear_button.click(fn=clear_inputs, outputs=[image_input, text_input, output])
126
 
127
  # Launch the app
128
- app.launch(share=True)
 
1
+ !pip install gradio transformers torch
2
  import gradio as gr
3
  from transformers import Qwen2VLForConditionalGeneration, AutoProcessor, AutoModelForCausalLM, AutoTokenizer
4
  import torch
 
126
  clear_button.click(fn=clear_inputs, outputs=[image_input, text_input, output])
127
 
128
  # Launch the app
129
+ app.launch(share=True)