Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,10 @@ def format_prompt(message, history):
|
|
44 |
return prompt
|
45 |
|
46 |
|
47 |
-
|
|
|
|
|
|
|
48 |
def run_gpt(
|
49 |
prompt_template,
|
50 |
stop_tokens,
|
|
|
44 |
return prompt
|
45 |
|
46 |
|
47 |
+
def _parse_text_generation_error(error: Optional[str], error_type: Optional[str]) -> TextGenerationError:
|
48 |
+
if error_type == "overloaded":
|
49 |
+
return OverloadedError(error) # type: ignore
|
50 |
+
|
51 |
def run_gpt(
|
52 |
prompt_template,
|
53 |
stop_tokens,
|