codelion commited on
Commit
02c994c
1 Parent(s): c3e546c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -16,10 +16,8 @@ DESCRIPTION = """\
16
  """
17
 
18
  LICENSE = """
19
- <p/>
20
-
21
  ---
22
- created by [meraGPT](https://meraGPT.com)
23
  """
24
 
25
  if not torch.cuda.is_available():
@@ -80,6 +78,7 @@ def generate(
80
 
81
  chat_interface = gr.ChatInterface(
82
  fn=generate,
 
83
  additional_inputs=[
84
  gr.Textbox(label="System prompt", lines=6),
85
  gr.Slider(
@@ -130,10 +129,8 @@ chat_interface = gr.ChatInterface(
130
 
131
  with gr.Blocks(css="style.css",) as demo:
132
  gr.Markdown(DESCRIPTION)
133
- with gr.Column(elem_classes="contain"):
134
- # gr.DuplicateButton(value="Duplicate Space for private use", elem_id="duplicate-button")
135
- chat_interface.render()
136
- # gr.Markdown(LICENSE,elem_classes="contain")
137
 
138
  if __name__ == "__main__":
139
  demo.queue(max_size=20).launch()
 
16
  """
17
 
18
  LICENSE = """
 
 
19
  ---
20
+ This space is powered by the [mera-mix-4x7B](https://huggingface.co/meraGPT/mera-mix-4x7B) model which was created by [meraGPT](https://meraGPT.com).
21
  """
22
 
23
  if not torch.cuda.is_available():
 
78
 
79
  chat_interface = gr.ChatInterface(
80
  fn=generate,
81
+ chat_bot=gr.Chatbot(height="600px"),
82
  additional_inputs=[
83
  gr.Textbox(label="System prompt", lines=6),
84
  gr.Slider(
 
129
 
130
  with gr.Blocks(css="style.css",) as demo:
131
  gr.Markdown(DESCRIPTION)
132
+ chat_interface.render()
133
+ gr.Markdown(LICENSE)
 
 
134
 
135
  if __name__ == "__main__":
136
  demo.queue(max_size=20).launch()