Update app.py
Browse files
app.py
CHANGED
|
@@ -174,7 +174,7 @@ class Demo:
|
|
| 174 |
def __init__(self):
|
| 175 |
pass
|
| 176 |
|
| 177 |
-
|
| 178 |
if not query or query.strip() == '':
|
| 179 |
query = random.choice(DEMO_LIST)['description']
|
| 180 |
|
|
|
|
| 174 |
def __init__(self):
|
| 175 |
pass
|
| 176 |
|
| 177 |
+
async def generation_code(self, query: Optional[str], _setting: Dict[str, str], _history: Optional[History]):
|
| 178 |
if not query or query.strip() == '':
|
| 179 |
query = random.choice(DEMO_LIST)['description']
|
| 180 |
|