sablab commited on
Commit
8549fec
·
verified ·
1 Parent(s): 6f0d5a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -10
app.py CHANGED
@@ -88,14 +88,13 @@ css = """
88
  border: 1px solid #ccc;
89
  }
90
  """
91
- demo = gr.Interface(
92
- generate,
93
- title="Mistral 7B Instruct",
94
- layout="centered",
95
- inputs=additional_inputs,
96
- outputs=output,
97
- css=css,
98
- show_copy=True # Add this line to show the copy button
99
- )
100
 
101
- demo.launch(inline=True)
 
 
 
 
 
 
 
 
 
88
  border: 1px solid #ccc;
89
  }
90
  """
 
 
 
 
 
 
 
 
 
91
 
92
+ with gr.Blocks(css=css) as demo:
93
+ gr.HTML("<h1><center>Mistral 7B Instruct<h1><center>")
94
+ gr.ChatInterface(
95
+ generate,
96
+ additional_inputs=additional_inputs,
97
+ show_copy_button= True
98
+ )
99
+
100
+ demo.queue().launch(debug=True)