abdullah040 commited on
Commit
42c0c9b
·
1 Parent(s): 18fff49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -9
app.py CHANGED
@@ -1,11 +1,8 @@
1
- import urllib.request
2
 
3
- url = 'https://gpt4all.io/models/ggml-mpt-7b-chat.bin'
4
- filename = 'ggml-mpt-7b-chat.bin'
5
 
6
- try:
7
- # Download the file
8
- urllib.request.urlretrieve(url, filename)
9
- print(f"Successfully downloaded '{filename}'")
10
- except Exception as e:
11
- print(f"An error occurred while downloading the file: {e}")
 
1
+ import gradio as gr
2
 
3
+ def greet(name):
4
+ return "Hello " + name + "!"
5
 
6
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
7
+
8
+ demo.launch()