HackPig520 commited on
Commit
6af1766
1 Parent(s): bff314b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -18
app.py CHANGED
@@ -44,23 +44,6 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
44
  """
45
  theme = gr.themes.Default(primary_hue="blue")
46
 
47
- with gr.Blocks(css = """#col_container { margin-left: auto; margin-right: auto;}
48
- #chatbot {height: 520px; overflow: auto;}""",
49
- theme=theme) as consent:
50
- with gr.Accordion("User Consent for Data Collection, Use, and Sharing", open=True):
51
- gr.HTML("""
52
- <div>
53
- <p>By using our app, which is powered by HuggingFaceH4/zephyr-7b-beta, you acknowledge and agree to the following terms regarding the data you provide:</p>
54
- <ol>
55
- <li><strong>Collection:</strong> We may collect information, including the inputs you type into our app, the outputs generated by OpenAI's API, and certain technical details about your device and connection (such as browser type, operating system, and IP address) provided by your device's request headers.</li>
56
- <li><strong>Use:</strong> We may use the collected data for research purposes, to improve our services, and to develop new products or services, including commercial applications, and for security purposes, such as protecting against unauthorized access and attacks.</li>
57
- <li><strong>Sharing and Publication:</strong> Your data, including the technical details collected from your device's request headers, may be published, shared with third parties, or used for analysis and reporting purposes.</li>
58
- <li><strong>Data Retention:</strong> We may retain your data, including the technical details collected from your device's request headers, for as long as necessary.</li>
59
- </ol>
60
- <p>By continuing to use our app, you provide your explicit consent to the collection, use, and potential sharing of your data as described above. If you do not agree with our data collection, use, and sharing practices, please do not use our app.</p>
61
- </div>
62
- """)
63
-
64
  app = gr.ChatInterface(
65
  respond,
66
  additional_inputs=[
@@ -80,5 +63,4 @@ app = gr.ChatInterface(
80
 
81
 
82
  if __name__ == "__main__":
83
- consent.launch()
84
  app.launch()
 
44
  """
45
  theme = gr.themes.Default(primary_hue="blue")
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
  app = gr.ChatInterface(
48
  respond,
49
  additional_inputs=[
 
63
 
64
 
65
  if __name__ == "__main__":
 
66
  app.launch()