Spaces:
Running
Running
Adding that ModelDetails is a dataclass.
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import os
|
2 |
import datetime
|
|
|
3 |
|
4 |
import gradio as gr
|
5 |
from huggingface_hub import HfApi
|
@@ -16,6 +17,7 @@ API = HfApi(token=TOKEN)
|
|
16 |
|
17 |
|
18 |
## All the model information that we might need
|
|
|
19 |
class ModelDetails:
|
20 |
name: str
|
21 |
display_name: str = ""
|
|
|
1 |
import os
|
2 |
import datetime
|
3 |
+
from dataclasses import dataclass
|
4 |
|
5 |
import gradio as gr
|
6 |
from huggingface_hub import HfApi
|
|
|
17 |
|
18 |
|
19 |
## All the model information that we might need
|
20 |
+
@dataclass
|
21 |
class ModelDetails:
|
22 |
name: str
|
23 |
display_name: str = ""
|