Spaces:
Sleeping
Sleeping
Ron Au
commited on
Commit
•
2ef32c5
1
Parent(s):
df36afa
refactor(stats): Replace Py3.9 operator for 3.8
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🧬
|
|
4 |
colorFrom: gray
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
-
python_version: 3.8.
|
8 |
app_file: start.py
|
9 |
models: [minimaxir/ai-generated-pokemon-rudalle]
|
10 |
pinned: true
|
|
|
4 |
colorFrom: gray
|
5 |
colorTo: green
|
6 |
sdk: gradio
|
7 |
+
python_version: 3.8.9
|
8 |
app_file: start.py
|
9 |
models: [minimaxir/ai-generated-pokemon-rudalle]
|
10 |
pinned: true
|
app.py
CHANGED
@@ -35,7 +35,7 @@ def new_card() -> Dict[str, Union[Details, str]]:
|
|
35 |
|
36 |
@app.get('/stats')
|
37 |
def stats() -> Dict[str, Union[int, object]]:
|
38 |
-
return get_stats()
|
39 |
|
40 |
|
41 |
@app.get('/logs')
|
|
|
35 |
|
36 |
@app.get('/stats')
|
37 |
def stats() -> Dict[str, Union[int, object]]:
|
38 |
+
return {**get_stats(), **{"cards_served": len(card_logs)}}
|
39 |
|
40 |
|
41 |
@app.get('/logs')
|