oroszgy commited on
Commit
092f905
1 Parent(s): 1a56f2a

Upgraded gradio version in HF spaces with a workaround

Browse files
Files changed (2) hide show
  1. app.py +2 -0
  2. env.py +2 -0
app.py CHANGED
@@ -1,3 +1,5 @@
 
 
1
  import gradio as gr
2
  from examples.keyphrases import demo as keyphrases_demo
3
 
 
1
+ # noinspection PyUnresolvedReferences
2
+ import env # Ugly workaround to upgrade gradio version in HF Spaces
3
  import gradio as gr
4
  from examples.keyphrases import demo as keyphrases_demo
5
 
env.py ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ import pip
2
+ pip.main(["install", "gradio==3.0.11"])