Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -9,5 +9,28 @@ def chat(input):
|
|
9 |
response = requests.post(url, json=data, headers=headers)
|
10 |
print(response.text)
|
11 |
return response.text
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
iface.launch(server_name="0.0.0.0")
|
|
|
9 |
response = requests.post(url, json=data, headers=headers)
|
10 |
print(response.text)
|
11 |
return response.text
|
12 |
+
|
13 |
+
css = '''
|
14 |
+
.input_text, .output_text {
|
15 |
+
font-family: Arial, sans-serif;
|
16 |
+
font-size: 16px;
|
17 |
+
}
|
18 |
+
.input_text:focus {
|
19 |
+
border: 2px solid #2C7BE5;
|
20 |
+
outline: none;
|
21 |
+
}
|
22 |
+
.output_text {
|
23 |
+
background-color: #F8F9FA;
|
24 |
+
border: 1px solid #CED4DA;
|
25 |
+
color: #495057;
|
26 |
+
}
|
27 |
+
.input_button {
|
28 |
+
background-color: #2C7BE5;
|
29 |
+
color: white;
|
30 |
+
font-weight: bold;
|
31 |
+
border: none;
|
32 |
+
}
|
33 |
+
'''
|
34 |
+
|
35 |
+
iface = gr.Interface(fn=chat, inputs="text", outputs="text",css=css)
|
36 |
iface.launch(server_name="0.0.0.0")
|