BICORP commited on
Commit
1df1cdd
·
verified ·
1 Parent(s): 7b6c2ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
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, # First input
23
- model, # Second input (correct parameter name)
24
- preset, # Third input (correct parameter name)
25
  api_name="/chat"
26
  )
27
  return result
@@ -66,7 +65,10 @@ css = """
66
  border: none;
67
  background: none;
68
  cursor: pointer;
69
- padding: 10px;
 
 
 
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 {