CK42 commited on
Commit
11999c8
1 Parent(s): 2b684d7

gradio upgrade 01-03-2024

Browse files

to correct runtime error 01-03-2024
TypeError: AsyncConnectionPool.__init__() got an unexpected keyword argument 'socket_options'
etc
import os
os.system("pip uninstall -y gradio")
os.system("pip install gradio==2.6.4")

Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -1,6 +1,11 @@
1
  import gradio as gr
2
  from transformers import pipeline
3
 
 
 
 
 
 
4
  app = gr.Blocks()
5
 
6
  model_id_1 = "nlptown/bert-base-multilingual-uncased-sentiment"
 
1
  import gradio as gr
2
  from transformers import pipeline
3
 
4
+ # to correct runtime error 01-03-2024
5
+ import os
6
+ os.system("pip uninstall -y gradio")
7
+ os.system("pip install gradio==2.6.4")
8
+
9
  app = gr.Blocks()
10
 
11
  model_id_1 = "nlptown/bert-base-multilingual-uncased-sentiment"