bevangelista commited on
Commit
c17ff42
·
verified ·
1 Parent(s): 6710493

Upload 3 files

Browse files
Files changed (3) hide show
  1. app.py +15 -4
  2. professor_willow_mj.png +2 -2
  3. 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
- background-image: url('https://huggingface.co/spaces/bevangelista/llm_prof_willow/resolve/main/professor_willow_mj.png');
33
- background-size: 400px;
 
34
  background-repeat: no-repeat;
35
  background-position: center top;
36
  overflow: hidden;
37
 
38
- width: 400px;
 
 
 
 
 
 
 
 
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

  • SHA256: ee4e358cdbc0d7f5dee5bc4c0962639064fc0d8346fde53d8331a642da79568b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.05 MB

Git LFS Details

  • SHA256: 61e0539ef3277164c23a8bffe7d36895bcc72f2e3349d6d89b3c14aeaaa93dd3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB
professor_willow_mj_s.png ADDED