Spaces:
Sleeping
Sleeping
ping98k
commited on
Commit
·
8b110ea
1
Parent(s):
edaa4ea
Update main.py
Browse files
main.py
CHANGED
|
@@ -6,9 +6,9 @@ from tqdm import tqdm
|
|
| 6 |
from litellm import completion
|
| 7 |
|
| 8 |
NUM_TOP_PICKS_DEFAULT = int(os.getenv("NUM_TOP_PICKS", 5))
|
| 9 |
-
POOL_SIZE_DEFAULT = int(os.getenv("POOL_SIZE",
|
| 10 |
MAX_WORKERS_DEFAULT = int(os.getenv("MAX_WORKERS", 10))
|
| 11 |
-
NUM_GENERATIONS_DEFAULT = int(os.getenv("NUM_GENERATIONS",
|
| 12 |
|
| 13 |
def generate_players(instruction, n):
|
| 14 |
response = completion(
|
|
@@ -139,7 +139,7 @@ demo = gr.Interface(
|
|
| 139 |
],
|
| 140 |
outputs=[
|
| 141 |
gr.Textbox(lines=10, label="Process"),
|
| 142 |
-
gr.Textbox(label="Top picks")
|
| 143 |
]
|
| 144 |
)
|
| 145 |
|
|
|
|
| 6 |
from litellm import completion
|
| 7 |
|
| 8 |
NUM_TOP_PICKS_DEFAULT = int(os.getenv("NUM_TOP_PICKS", 5))
|
| 9 |
+
POOL_SIZE_DEFAULT = int(os.getenv("POOL_SIZE", 10))
|
| 10 |
MAX_WORKERS_DEFAULT = int(os.getenv("MAX_WORKERS", 10))
|
| 11 |
+
NUM_GENERATIONS_DEFAULT = int(os.getenv("NUM_GENERATIONS", 20))
|
| 12 |
|
| 13 |
def generate_players(instruction, n):
|
| 14 |
response = completion(
|
|
|
|
| 139 |
],
|
| 140 |
outputs=[
|
| 141 |
gr.Textbox(lines=10, label="Process"),
|
| 142 |
+
gr.Textbox(lines=50, label="Top picks")
|
| 143 |
]
|
| 144 |
)
|
| 145 |
|