Tose10 commited on
Commit
2f6bb2d
·
verified ·
1 Parent(s): 78dc415

Update Urbix

Browse files
Files changed (1) hide show
  1. Urbix +31 -1
Urbix CHANGED
@@ -200,4 +200,34 @@ demo = gr.Interface(
200
  if __name__ == "__main__":
201
  demo.launch(share=True) # The 'share=True' gives you a link you can send to anyone!
202
  Running on public URL: https://9f191404536439da27.gradio.live
203
- https://huggingface.co/UrbixAI/Urbix/resolve/main/.gitattributes
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
  if __name__ == "__main__":
201
  demo.launch(share=True) # The 'share=True' gives you a link you can send to anyone!
202
  Running on public URL: https://9f191404536439da27.gradio.live
203
+ https://huggingface.co/UrbixAI/Urbix/resolve/main/.gitattributes
204
+ # Save after training
205
+ model.save("urbix_model.h5")
206
+
207
+ # Load in app.py
208
+ model = tf.keras.models.load_model("urbix_model.h5")
209
+ # Change the Interface outputs
210
+ outputs = gr.Label(num_top_classes=2)
211
+
212
+ # In urbix_analyze, return a dict of probabilities
213
+ return {class_names[0]: float(predictions[0][0]), class_names[1]: float(predictions[0][1])}
214
+ requirements.txt
215
+ This directory includes a few sample datasets to get you started.
216
+
217
+ * `california_housing_data*.csv` is California housing data from the 1990 US
218
+ Census; more information is available at:
219
+ https://docs.google.com/document/d/e/2PACX-1vRhYtsvc5eOR2FWNCwaBiKL6suIOrxJig8LcSBbmCbyYsayia_DvPOOBlXZ4CAlQ5nlDD8kTaIDRwrN/pub
220
+
221
+ * `mnist_*.csv` is a small sample of the
222
+ [MNIST database](https://en.wikipedia.org/wiki/MNIST_database), which is
223
+ described at: http://yann.lecun.com/exdb/mnist/
224
+
225
+ * `anscombe.json` contains a copy of
226
+ [Anscombe's quartet](https://en.wikipedia.org/wiki/Anscombe%27s_quartet); it
227
+ was originally described in
228
+
229
+ Anscombe, F. J. (1973). 'Graphs in Statistical Analysis'. American
230
+ Statistician. 27 (1): 17-21. JSTOR 2682899.
231
+
232
+ and our copy was prepared by the
233
+ [vega_datasets library](https://github.com/altair-viz/vega_datasets/blob/4f67bdaad10f45e3549984e17e1b3088c731503d/vega_datasets/_data/anscombe.json).