Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,11 +17,10 @@ def call_api(message, model, preset):
|
|
| 17 |
client = Client(selected_server)
|
| 18 |
|
| 19 |
try:
|
| 20 |
-
# **Get API parameter names (replace with actual API parameter names from "View API")**
|
| 21 |
result = client.predict(
|
| 22 |
-
message,
|
| 23 |
-
model,
|
| 24 |
-
preset,
|
| 25 |
api_name="/chat"
|
| 26 |
)
|
| 27 |
return result
|
|
@@ -66,7 +65,10 @@ css = """
|
|
| 66 |
border: none;
|
| 67 |
background: none;
|
| 68 |
cursor: pointer;
|
| 69 |
-
padding:
|
|
|
|
|
|
|
|
|
|
| 70 |
}
|
| 71 |
|
| 72 |
#send-button:hover {
|
|
|
|
| 17 |
client = Client(selected_server)
|
| 18 |
|
| 19 |
try:
|
|
|
|
| 20 |
result = client.predict(
|
| 21 |
+
message,
|
| 22 |
+
model,
|
| 23 |
+
preset,
|
| 24 |
api_name="/chat"
|
| 25 |
)
|
| 26 |
return result
|
|
|
|
| 65 |
border: none;
|
| 66 |
background: none;
|
| 67 |
cursor: pointer;
|
| 68 |
+
padding: 5px; /* Reduced padding for a smaller button */
|
| 69 |
+
font-size: 12px; /* Smaller font size */
|
| 70 |
+
width: 30px; /* Set a specific width */
|
| 71 |
+
height: 30px; /* Set a specific height */
|
| 72 |
}
|
| 73 |
|
| 74 |
#send-button:hover {
|