Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,19 +42,8 @@ def respond(
|
|
| 42 |
"""
|
| 43 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
| 44 |
"""
|
|
|
|
| 45 |
app = gr.ChatInterface(
|
| 46 |
-
gr.HTML("""
|
| 47 |
-
<div>
|
| 48 |
-
<p>By using our app, which is powered by zephyr-7b-beta, you acknowledge and agree to the following terms regarding the data you provide:</p>
|
| 49 |
-
<ol>
|
| 50 |
-
<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>
|
| 51 |
-
<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>
|
| 52 |
-
<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>
|
| 53 |
-
<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>
|
| 54 |
-
</ol>
|
| 55 |
-
<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>
|
| 56 |
-
</div>
|
| 57 |
-
"""),
|
| 58 |
respond,
|
| 59 |
additional_inputs=[
|
| 60 |
gr.Textbox(value="You are a friendly Chatbot. Your name is ChatWithMe.", label="System message"),
|
|
@@ -68,6 +57,7 @@ app = gr.ChatInterface(
|
|
| 68 |
label="Top-p (nucleus sampling)",
|
| 69 |
),
|
| 70 |
],
|
|
|
|
| 71 |
)
|
| 72 |
|
| 73 |
|
|
|
|
| 42 |
"""
|
| 43 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
| 44 |
"""
|
| 45 |
+
theme = gr.themes.Default(primary_hue="blue")
|
| 46 |
app = gr.ChatInterface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
respond,
|
| 48 |
additional_inputs=[
|
| 49 |
gr.Textbox(value="You are a friendly Chatbot. Your name is ChatWithMe.", label="System message"),
|
|
|
|
| 57 |
label="Top-p (nucleus sampling)",
|
| 58 |
),
|
| 59 |
],
|
| 60 |
+
theme=theme
|
| 61 |
)
|
| 62 |
|
| 63 |
|