Abid commited on
Commit
a7ec497
1 Parent(s): 0332e1e

uninstall and add gradio added from Github

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -2,7 +2,14 @@ import subprocess
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
  import torch
4
 
5
- subprocess.run(["pip", "install", "git+https://github.com/gradio-app/gradio"])
 
 
 
 
 
 
 
6
 
7
  tokenizer = AutoTokenizer.from_pretrained("ericzhou/DialoGPT-Medium-Rick_v2")
8
  model = AutoModelForCausalLM.from_pretrained("ericzhou/DialoGPT-Medium-Rick_v2")
 
2
  from transformers import AutoModelForCausalLM, AutoTokenizer
3
  import torch
4
 
5
+ subprocess.run(["pip", "uninstall", "gradio"])
6
+ subprocess.run(
7
+ [
8
+ "pip",
9
+ "install",
10
+ "git+https://github.com/gradio-app/gradio@494c09a7be0a6ebeb4420ba9c920f2cf7f277cf2",
11
+ ]
12
+ )
13
 
14
  tokenizer = AutoTokenizer.from_pretrained("ericzhou/DialoGPT-Medium-Rick_v2")
15
  model = AutoModelForCausalLM.from_pretrained("ericzhou/DialoGPT-Medium-Rick_v2")