hanoch@raized.ai commited on
Commit
5483375
·
1 Parent(s): b419e4e
Files changed (3) hide show
  1. .gitignore +2 -0
  2. app.py +7 -4
  3. requirements.txt +3 -0
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ .env
2
+ env39/
app.py CHANGED
@@ -1,7 +1,10 @@
 
 
 
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
- demo.launch()
 
 
1
+ import os
2
+
3
+ from dotenv import load_dotenv
4
  import gradio as gr
5
 
6
+ load_dotenv()
 
7
 
8
+ HF_TOKEN = os.getenv("HF_TOKEN")
9
+ demo = gr.load(name="spaces/pantareh/crm-private", hf_token = HF_TOKEN)
10
+ demo.launch(show_error=True)
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ gradio
2
+ minijinja
3
+ python-dotenv