Spaces:
Running
Running
Commit
·
7ea3e04
1
Parent(s):
d01b960
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,9 @@ import os
|
|
3 |
import openai
|
4 |
import requests
|
5 |
import json
|
|
|
6 |
openai.api_key = os.environ.get("OPENAI_API_KEY")
|
7 |
-
|
8 |
prompt_templates = {"Default ChatGPT": ""}
|
9 |
|
10 |
def get_empty_state():
|
@@ -76,6 +77,7 @@ css = """
|
|
76 |
#label {font-size: 0.8em; padding: 0.5em; margin: 0;}
|
77 |
.message { font-size: 1.2em; }
|
78 |
"""
|
|
|
79 |
with gr.Blocks(css=css) as demo:
|
80 |
|
81 |
state = gr.State(get_empty_state())
|
|
|
3 |
import openai
|
4 |
import requests
|
5 |
import json
|
6 |
+
|
7 |
openai.api_key = os.environ.get("OPENAI_API_KEY")
|
8 |
+
|
9 |
prompt_templates = {"Default ChatGPT": ""}
|
10 |
|
11 |
def get_empty_state():
|
|
|
77 |
#label {font-size: 0.8em; padding: 0.5em; margin: 0;}
|
78 |
.message { font-size: 1.2em; }
|
79 |
"""
|
80 |
+
|
81 |
with gr.Blocks(css=css) as demo:
|
82 |
|
83 |
state = gr.State(get_empty_state())
|