File size: 955 Bytes
d7fb648
448c83b
 
 
97912ff
d7fb648
 
 
 
 
 
 
57ffb84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
title: Imagen Tutorial
emoji: 🤔
colorFrom: green
colorTo: pink
sdk: gradio
sdk_version: 4.18.0
app_file: app.py
pinned: false
license: apache-2.0
---

### To recreate this in your own space:

* duplicate this space
* copy the `env-sample` and save as `.env`
* add your OpenAI API Key, and the password you want your users to enter.

### To run locally:

(optional - run in virtual environment)

1	type `virtualenv venv` to create new `venv`
2	type `source venv/bin/activate` to activity `venv`

(required)
3	type pip install -r requirements.txt to install requirements package
4	wait pip install finish
5	type `python app.py`
6	open your browser and type http://127.0.0.1:7860
7	the api docs in http://127.0.0.1:7860/?view=api

### Troubleshooting install

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`