Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,20 @@
|
|
1 |
# Step 2: Import libraries
|
2 |
import gradio as gr
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
# Step 3: Define College Data
|
5 |
college_about = """
|
6 |
The college was notified to work from 16th July 2003 on the directions of the then care-taker Minister for education Mr. Khan Muhammad Dahri.
|
|
|
1 |
# Step 2: Import libraries
|
2 |
import gradio as gr
|
3 |
|
4 |
+
# CSS file ko load karna
|
5 |
+
with open("style.css", "r") as f:
|
6 |
+
custom_css = f.read()
|
7 |
+
|
8 |
+
# Gradio Interface
|
9 |
+
def greet(name):
|
10 |
+
return f"Hello, {name}!"
|
11 |
+
|
12 |
+
app = gr.Interface(
|
13 |
+
fn=greet,
|
14 |
+
inputs="text",
|
15 |
+
outputs="text",
|
16 |
+
css=custom_css # CSS Add karna
|
17 |
+
|
18 |
# Step 3: Define College Data
|
19 |
college_about = """
|
20 |
The college was notified to work from 16th July 2003 on the directions of the then care-taker Minister for education Mr. Khan Muhammad Dahri.
|