mandyvarel commited on
Commit
ba4f191
1 Parent(s): 622764d

Upload 3 files

Browse files
Files changed (2) hide show
  1. README.md +24 -12
  2. app.py +2 -2
README.md CHANGED
@@ -1,12 +1,24 @@
1
- ---
2
- title: Recipe Cleaner
3
- emoji: 👀
4
- colorFrom: blue
5
- colorTo: purple
6
- sdk: gradio
7
- sdk_version: 3.21.0
8
- app_file: app.py
9
- pinned: false
10
- ---
11
-
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Interacting with OpenAI in Python
2
+
3
+ Sign up to OpenAI: https://platform.openai.com/signup
4
+ Then create an API key at: https://platform.openai.com/account/api-keys
5
+
6
+ Set your OPENAI_API_KEY environment variable:
7
+
8
+ ```bash
9
+ export OPENAI_API_KEY=sk-...
10
+ ```
11
+
12
+ Create a virtual environment and install the requirements:
13
+
14
+ ```bash
15
+ python3 -m venv venv
16
+ source venv/bin/activate
17
+ pip install -r requirements.txt
18
+ ```
19
+
20
+ Run the example:
21
+
22
+ ```bash
23
+ gradio app.py
24
+ ```
app.py CHANGED
@@ -74,7 +74,7 @@ demo = gradio.Interface(
74
  title="Recipe Cleaner"
75
  )
76
 
77
- demo.launch()
78
- # demo.launch(share=True)
79
 
80
 
 
74
  title="Recipe Cleaner"
75
  )
76
 
77
+ # demo.launch()
78
+ demo.launch(share=True)
79
 
80