Spaces:
Sleeping
Sleeping
Commit
·
286b124
1
Parent(s):
2ea9003
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,11 @@ import time
|
|
| 4 |
import random
|
| 5 |
import gradio as gr
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
#if you have OpenAI API key as a string, enable the below
|
| 9 |
openai.api_key = os.environ['OPENAI_API_KEY']
|
|
@@ -66,7 +71,7 @@ def openai_create(user_input):
|
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
-
block = gr.Blocks(css=".gradio-container {background: url('file=fundo.jpg'); background-size: contain;}")
|
| 70 |
|
| 71 |
|
| 72 |
with block:
|
|
|
|
| 4 |
import random
|
| 5 |
import gradio as gr
|
| 6 |
|
| 7 |
+
theme = gr.themes.Base(
|
| 8 |
+
neutral_hue="blue",
|
| 9 |
+
).set(
|
| 10 |
+
shadow_drop='*shadow_drop_lg'
|
| 11 |
+
)
|
| 12 |
|
| 13 |
#if you have OpenAI API key as a string, enable the below
|
| 14 |
openai.api_key = os.environ['OPENAI_API_KEY']
|
|
|
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
+
block = gr.Blocks(theme=theme, css=".gradio-container {background: url('file=fundo.jpg'); background-size: contain;}")
|
| 75 |
|
| 76 |
|
| 77 |
with block:
|