heaversm commited on
Commit
57ffb84
·
1 Parent(s): dfa75b2

change title card

Browse files
Files changed (1) hide show
  1. README.md +27 -5
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
- title: Pdr Image Gen
3
- emoji: 📊
4
- colorFrom: gray
5
- colorTo: blue
6
  sdk: gradio
7
  sdk_version: 4.18.0
8
  app_file: app.py
@@ -10,4 +10,26 @@ pinned: false
10
  license: apache-2.0
11
  ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Prompt de Resistance Image Generator
3
+ emoji: 🕊️
4
+ colorFrom: green
5
+ colorTo: lime
6
  sdk: gradio
7
  sdk_version: 4.18.0
8
  app_file: app.py
 
10
  license: apache-2.0
11
  ---
12
 
13
+ ### To recreate this in your own space:
14
+
15
+ * duplicate this space
16
+ * copy the `env-sample` and save as `.env`
17
+ * add your OpenAI API Key, and the password you want your users to enter.
18
+
19
+ ### To run locally:
20
+
21
+ (optional - run in virtual environment)
22
+
23
+ 1 type `virtualenv venv` to create new `venv`
24
+ 2 type `source venv/bin/activate` to activity `venv`
25
+
26
+ (required)
27
+ 3 type pip install -r requirements.txt to install requirements package
28
+ 4 wait pip install finish
29
+ 5 type `python app.py`
30
+ 6 open your browser and type http://127.0.0.1:7860
31
+ 7 the api docs in http://127.0.0.1:7860/?view=api
32
+
33
+ ### Troubleshooting install
34
+
35
+ In some environments, such as Mac when you have both python 2 and 3 installed, you may want to run `pip3install -r requirements`, `pip3 install setuptools`, and then `python3 app.py`