alinasdkey commited on
Commit
50cf515
·
verified ·
1 Parent(s): 28921c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -1,3 +1,10 @@
 
 
 
 
 
 
 
1
  import gradio as gr
2
  from unsloth import FastVisionModel
3
  from transformers import AutoTokenizer
 
1
+ import os
2
+ if not os.getenv("UNSLOTH_INSTALLED"):
3
+ os.system('pip install git+https://github.com/unslothai/unsloth.git')
4
+ os.environ["UNSLOTH_INSTALLED"] = "1"
5
+
6
+
7
+
8
  import gradio as gr
9
  from unsloth import FastVisionModel
10
  from transformers import AutoTokenizer