benjaminwang commited on
Commit
1eca2d7
·
1 Parent(s): 38aff67

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -1,7 +1,8 @@
1
- import gradio as gr
2
-
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
-
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
1
+ #@title 1. Press the play button to load the web interface (~35 seconds)
2
+ !git clone https://github.com/MarkSchmidty/ChatGLM-6B-Int4-Web-Demo --quiet
3
+ !echo "Repo cloned / Installing dependencies"
4
+ !pip install -r ./ChatGLM-6B-Int4-Web-Demo/requirements.txt -q --log pip.log > /dev/null 2>&1
5
+ !echo "Dependencies installed / Installing gradio"
6
+ !pip install gradio -q --log pip.log > /dev/null 2>&1
7
+ !echo "gradio installed / Downloading model files [20sec remaining]"
8
+ !python ./ChatGLM-6B-Int4-Web-Demo/web_demo.py