Spaces:
Sleeping
Sleeping
Update helper_revised.py
Browse files- helper_revised.py +6 -5
helper_revised.py
CHANGED
|
@@ -50,8 +50,8 @@ class Queries(BaseModel):
|
|
| 50 |
queries: List[str]
|
| 51 |
|
| 52 |
class ewriter:
|
| 53 |
-
def __init__(self, model_names = ["GPT-3.5","GPT-3.5","GPT-3.5"]):
|
| 54 |
-
|
| 55 |
|
| 56 |
models = [self.create_model(model_name) for model_name in model_names]
|
| 57 |
|
|
@@ -197,7 +197,8 @@ import time
|
|
| 197 |
|
| 198 |
class writer_gui:
|
| 199 |
|
| 200 |
-
def __init__(self, model_names=["GPT-3.5","GPT-3.5","GPT-3.5"], share=False):
|
|
|
|
| 201 |
# def __init__(self, share=False):
|
| 202 |
|
| 203 |
# self.is_new_session = True # Indicates if it's a new session
|
|
@@ -438,8 +439,8 @@ class writer_gui:
|
|
| 438 |
return (
|
| 439 |
gr.update(value="", interactive=True), # Reset live output
|
| 440 |
gr.update(value="GPT-3.5", interactive=True), # Reset model dropdown1
|
| 441 |
-
gr.update(value="
|
| 442 |
-
gr.update(value="
|
| 443 |
gr.update(value="All work and no play makes Jack a Jackass!", interactive=True), # Reset topic box
|
| 444 |
gr.update(interactive=False), # Set generate button to inactive
|
| 445 |
gr.update(interactive=False), # Set continue button to inactive
|
|
|
|
| 50 |
queries: List[str]
|
| 51 |
|
| 52 |
class ewriter:
|
| 53 |
+
# def __init__(self, model_names = ["GPT-3.5","GPT-3.5","GPT-3.5"]):
|
| 54 |
+
def __init__(self, model_names = ["GPT-3.5","Claude 3 Sonnet","Claude 3.5 Sonnet"]):
|
| 55 |
|
| 56 |
models = [self.create_model(model_name) for model_name in model_names]
|
| 57 |
|
|
|
|
| 197 |
|
| 198 |
class writer_gui:
|
| 199 |
|
| 200 |
+
# def __init__(self, model_names=["GPT-3.5","GPT-3.5","GPT-3.5"], share=False):
|
| 201 |
+
def __init__(self, model_names=["GPT-3.5","Claude 3 Sonnet","Claude 3.5 Sonnet"], share=False):
|
| 202 |
# def __init__(self, share=False):
|
| 203 |
|
| 204 |
# self.is_new_session = True # Indicates if it's a new session
|
|
|
|
| 439 |
return (
|
| 440 |
gr.update(value="", interactive=True), # Reset live output
|
| 441 |
gr.update(value="GPT-3.5", interactive=True), # Reset model dropdown1
|
| 442 |
+
gr.update(value="Claude 3 Sonnet", interactive=True), # Reset model dropdown2
|
| 443 |
+
gr.update(value="Claude 3.5 Sonnet", interactive=True), # Reset model dropdown3
|
| 444 |
gr.update(value="All work and no play makes Jack a Jackass!", interactive=True), # Reset topic box
|
| 445 |
gr.update(interactive=False), # Set generate button to inactive
|
| 446 |
gr.update(interactive=False), # Set continue button to inactive
|