Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -114,13 +114,19 @@ vCARD_data = {
|
|
| 114 |
}
|
| 115 |
|
| 116 |
def test_fn(v_data_0,v_data_1,v_data_2,v_data_3,v_data_4,v_data_5,v_data_6,v_data_7,v_data_8,v_data_9,v_data_10,v_data_11):
|
| 117 |
-
|
| 118 |
-
|
|
|
|
|
|
|
| 119 |
try:
|
| 120 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 121 |
except Exception:
|
| 122 |
-
|
| 123 |
-
return
|
| 124 |
|
| 125 |
|
| 126 |
with gr.Blocks() as app:
|
|
|
|
| 114 |
}
|
| 115 |
|
| 116 |
def test_fn(v_data_0,v_data_1,v_data_2,v_data_3,v_data_4,v_data_5,v_data_6,v_data_7,v_data_8,v_data_9,v_data_10,v_data_11):
|
| 117 |
+
out_vcard = """
|
| 118 |
+
BEGIN:VCARD
|
| 119 |
+
VERSION:4.0
|
| 120 |
+
"""
|
| 121 |
try:
|
| 122 |
+
|
| 123 |
+
if v_data_0 != "":
|
| 124 |
+
out_vcard = f"{out_vcard}\n{vCARD_data[list(vCARD_data)[0])]} v_data_0"}
|
| 125 |
+
|
| 126 |
+
|
| 127 |
except Exception:
|
| 128 |
+
out_vcard = "Error"
|
| 129 |
+
return out_vcard
|
| 130 |
|
| 131 |
|
| 132 |
with gr.Blocks() as app:
|