mikeee commited on
Commit
a6c3106
·
verified ·
1 Parent(s): d1a0824

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -9,7 +9,7 @@ from huggingface_hub import InferenceClient
9
 
10
  import os
11
 
12
- ACCESS_TOKEN = os.getenv("HF_TOKEN")
13
 
14
  _ = """
15
  client = OpenAI(
@@ -57,6 +57,14 @@ def respond(
57
 
58
  chatbot = gr.Chatbot(height=600)
59
 
 
 
 
 
 
 
 
 
60
  demo = gr.ChatInterface(
61
  respond,
62
  additional_inputs=[
@@ -75,6 +83,8 @@ demo = gr.ChatInterface(
75
  ],
76
  fill_height=True,
77
  chatbot=chatbot,
 
 
78
  # theme="Nymbo/Alyx_Theme",
79
  )
80
  if __name__ == "__main__":
 
9
 
10
  import os
11
 
12
+ # ACCESS_TOKEN = os.getenv("HF_TOKEN")
13
 
14
  _ = """
15
  client = OpenAI(
 
57
 
58
  chatbot = gr.Chatbot(height=600)
59
 
60
+ css = '''
61
+ .gradio-container{max-width: 1000px !important}
62
+ h1{text-align:center}
63
+ footer {
64
+ visibility: hidden
65
+ }
66
+ '''
67
+
68
  demo = gr.ChatInterface(
69
  respond,
70
  additional_inputs=[
 
83
  ],
84
  fill_height=True,
85
  chatbot=chatbot,
86
+ css=css,
87
+ theme="allenai/gradio-theme",
88
  # theme="Nymbo/Alyx_Theme",
89
  )
90
  if __name__ == "__main__":