ancebuc commited on
Commit
6d0ddc9
1 Parent(s): b3818d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -2,8 +2,17 @@ import gradio as gr
2
  import random
3
  import time
4
  from transformers import AutoModelForSequenceClassification
 
5
 
6
  with gr.Blocks() as demo:
 
 
 
 
 
 
 
 
7
  chatbot = gr.Chatbot()
8
  msg = gr.Textbox()
9
  clear = gr.ClearButton([msg, chatbot])
 
2
  import random
3
  import time
4
  from transformers import AutoModelForSequenceClassification
5
+ import os
6
 
7
  with gr.Blocks() as demo:
8
+
9
+ # Instalar accelerate
10
+ os.system("pip install accelerate")
11
+
12
+ # Instalar bitsandbytes
13
+ os.system("pip install -i https://pypi.org/simple/ bitsandbytes")
14
+
15
+
16
  chatbot = gr.Chatbot()
17
  msg = gr.Textbox()
18
  clear = gr.ClearButton([msg, chatbot])