Update app.py
Browse files
app.py
CHANGED
@@ -136,7 +136,6 @@ IMPORT_TO_PACKAGE = {
|
|
136 |
'Image': 'pillow'
|
137 |
}
|
138 |
|
139 |
-
|
140 |
def get_package_name(import_name):
|
141 |
"""임포트명으로부터 실제 패키지명을 반환"""
|
142 |
if import_name in BUILTIN_MODULES:
|
@@ -495,14 +494,10 @@ class Demo:
|
|
495 |
|
496 |
if collected_content:
|
497 |
_history.append([query, collected_content])
|
498 |
-
else:
|
499 |
-
raise ValueError("No content was generated from either API")
|
500 |
|
501 |
except Exception as e:
|
502 |
print(f"Error details: {str(e)}")
|
503 |
raise ValueError(f'Error calling APIs: {str(e)}')
|
504 |
-
|
505 |
-
return collected_content
|
506 |
|
507 |
def clear_history(self):
|
508 |
return []
|
|
|
136 |
'Image': 'pillow'
|
137 |
}
|
138 |
|
|
|
139 |
def get_package_name(import_name):
|
140 |
"""임포트명으로부터 실제 패키지명을 반환"""
|
141 |
if import_name in BUILTIN_MODULES:
|
|
|
494 |
|
495 |
if collected_content:
|
496 |
_history.append([query, collected_content])
|
|
|
|
|
497 |
|
498 |
except Exception as e:
|
499 |
print(f"Error details: {str(e)}")
|
500 |
raise ValueError(f'Error calling APIs: {str(e)}')
|
|
|
|
|
501 |
|
502 |
def clear_history(self):
|
503 |
return []
|