Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
# Function to generate the certificate with user input
|
5 |
def generate_certificate(name, id_num, date):
|
6 |
# Open the certificate template (ensure the path is correct)
|
7 |
-
template = Image.open("ID.png") # Update this path if running locally
|
8 |
draw = ImageDraw.Draw(template)
|
9 |
|
10 |
# Load font with specified size (ensure you have the TTF file available)
|
|
|
4 |
# Function to generate the certificate with user input
|
5 |
def generate_certificate(name, id_num, date):
|
6 |
# Open the certificate template (ensure the path is correct)
|
7 |
+
template = Image.open("https://huggingface.co/spaces/SarahMarzouq/TechUp_Certificate/resolve/main/ID.png") # Update this path if running locally
|
8 |
draw = ImageDraw.Draw(template)
|
9 |
|
10 |
# Load font with specified size (ensure you have the TTF file available)
|