Spaces:
Runtime error
Runtime error
Upload 3 files
Browse files- app.py +15 -4
- professor_willow_mj.png +2 -2
- professor_willow_mj_s.png +0 -0
app.py
CHANGED
|
@@ -5,7 +5,8 @@ import gradio as gr
|
|
| 5 |
import requests
|
| 6 |
|
| 7 |
CHAT_ACCESS_KEY = os.environ.get("CHAT_ACCESS_KEY")
|
| 8 |
-
CHAT_ENDPOINT_URI = os.environ.get("CHAT_ENDPOINT_URI")
|
|
|
|
| 9 |
|
| 10 |
custom_css = """
|
| 11 |
:root {
|
|
@@ -29,13 +30,22 @@ div[data-testid="block-label"] {
|
|
| 29 |
}
|
| 30 |
|
| 31 |
.main {
|
| 32 |
-
|
| 33 |
-
background-
|
|
|
|
| 34 |
background-repeat: no-repeat;
|
| 35 |
background-position: center top;
|
| 36 |
overflow: hidden;
|
| 37 |
|
| 38 |
-
width:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
}
|
| 40 |
|
| 41 |
.message {
|
|
@@ -117,6 +127,7 @@ with gr.Blocks(css=custom_css) as app:
|
|
| 117 |
|
| 118 |
chat_history = gr.State([])
|
| 119 |
chatbot = gr.Chatbot(
|
|
|
|
| 120 |
bubble_full_width=False,
|
| 121 |
)
|
| 122 |
|
|
|
|
| 5 |
import requests
|
| 6 |
|
| 7 |
CHAT_ACCESS_KEY = os.environ.get("CHAT_ACCESS_KEY")
|
| 8 |
+
#CHAT_ENDPOINT_URI = os.environ.get("CHAT_ENDPOINT_URI")
|
| 9 |
+
CHAT_ENDPOINT_URI = 'https://scxwvhf1a824dp-8080.proxy.runpod.net/v1/completions'
|
| 10 |
|
| 11 |
custom_css = """
|
| 12 |
:root {
|
|
|
|
| 30 |
}
|
| 31 |
|
| 32 |
.main {
|
| 33 |
+
border-radius: 20px;
|
| 34 |
+
background-image: url('https://huggingface.co/spaces/bevangelista/llm_prof_willow/resolve/main/professor_willow_mj_s.png');
|
| 35 |
+
background-size: cover;
|
| 36 |
background-repeat: no-repeat;
|
| 37 |
background-position: center top;
|
| 38 |
overflow: hidden;
|
| 39 |
|
| 40 |
+
width: 600px;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
.contain { display: flex; flex-direction: column; }
|
| 44 |
+
.gradio-container { height: 100vh !important; }
|
| 45 |
+
#component-0 { height: 600px; }
|
| 46 |
+
#chatbot {
|
| 47 |
+
flex-grow: 1; overflow: auto;
|
| 48 |
+
opacity: 0.83;
|
| 49 |
}
|
| 50 |
|
| 51 |
.message {
|
|
|
|
| 127 |
|
| 128 |
chat_history = gr.State([])
|
| 129 |
chatbot = gr.Chatbot(
|
| 130 |
+
elem_id='chatbot',
|
| 131 |
bubble_full_width=False,
|
| 132 |
)
|
| 133 |
|
professor_willow_mj.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
professor_willow_mj_s.png
ADDED
|