methestrikerx100 commited on
Commit
18a85c9
·
verified ·
1 Parent(s): 8e31b74

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -34
app.py CHANGED
@@ -117,46 +117,14 @@ DESCRIPTION = '''
117
  def welcome(name):
118
  return f"Welcome to Gradio, {name}!"
119
 
120
- js = """
121
- function createGradioAnimation() {
122
- var container = document.createElement('div');
123
- container.id = 'gradio-animation';
124
- container.style.fontSize = '2em';
125
- container.style.fontWeight = 'bold';
126
- container.style.textAlign = 'center';
127
- container.style.marginBottom = '20px';
128
-
129
- var text = 'Welcome to Gradio!';
130
- for (var i = 0; i < text.length; i++) {
131
- (function(i){
132
- setTimeout(function(){
133
- var letter = document.createElement('span');
134
- letter.style.opacity = '0';
135
- letter.style.transition = 'opacity 0.5s';
136
- letter.innerText = text[i];
137
-
138
- container.appendChild(letter);
139
-
140
- setTimeout(function() {
141
- letter.style.opacity = '1';
142
- }, 50);
143
- }, i * 250);
144
- })(i);
145
- }
146
-
147
- var gradioContainer = document.querySelector('.gradio-container');
148
- gradioContainer.insertBefore(container, gradioContainer.firstChild);
149
-
150
- return 'Animation created';
151
- }
152
- """
153
 
154
 
155
  app_title = "Mineral Identification using AI"
156
  app_description = "This application uses advanced machine learning models to accurately identify and classify different types of minerals from images. Simply upload an image, and the system will provide the predicted mineral class along with its key characteristics and properties."
157
 
158
  custom_css = """
159
- .gradio-container {display: flex; justify-content: center; align-items: center; height: 100vh;}
160
 
161
 
162
  #title-container {
 
117
  def welcome(name):
118
  return f"Welcome to Gradio, {name}!"
119
 
120
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
121
 
122
 
123
  app_title = "Mineral Identification using AI"
124
  app_description = "This application uses advanced machine learning models to accurately identify and classify different types of minerals from images. Simply upload an image, and the system will provide the predicted mineral class along with its key characteristics and properties."
125
 
126
  custom_css = """
127
+ .gradio-container {display: flex; justify-content: center; align-items: center; height: 100vh;background-color: #f0f0f0;}
128
 
129
 
130
  #title-container {