added option to show algorithm
Browse files
utils.py
CHANGED
@@ -99,7 +99,11 @@ class AudioStateIG:
|
|
99 |
base = {
|
100 |
"conv_id": self.conv_id,
|
101 |
"label": self.row.label,
|
102 |
-
"filename": self.row.filename
|
|
|
|
|
|
|
|
|
103 |
}
|
104 |
return base
|
105 |
|
@@ -133,7 +137,7 @@ def fake_last_response(
|
|
133 |
vote_last_response(
|
134 |
state, "fake", request
|
135 |
)
|
136 |
-
return (disable_btn,) * 3 + (gr.Markdown(f"### {state.row.label}", visible=True),)
|
137 |
|
138 |
def real_last_response(
|
139 |
state, request: gr.Request
|
|
|
99 |
base = {
|
100 |
"conv_id": self.conv_id,
|
101 |
"label": self.row.label,
|
102 |
+
"filename": self.row.filename,
|
103 |
+
"duration": self.row.duration,
|
104 |
+
"song_id": str(self.row.id),
|
105 |
+
"source": self.row.source,
|
106 |
+
"algorithm": self.row.algorithm
|
107 |
}
|
108 |
return base
|
109 |
|
|
|
137 |
vote_last_response(
|
138 |
state, "fake", request
|
139 |
)
|
140 |
+
return (disable_btn,) * 3 + (gr.Markdown(f"### {state.row.label} \nModel : {state.row.algorithm}", visible=True),)
|
141 |
|
142 |
def real_last_response(
|
143 |
state, request: gr.Request
|