Update app.py
Browse files
app.py
CHANGED
|
@@ -4,9 +4,7 @@ os.environ["KERAS_BACKEND"] = "tensorflow"
|
|
| 4 |
import keras
|
| 5 |
import keras_nlp
|
| 6 |
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
css = "body {background-image: url('https://www.universetoday.com/wp-content/uploads/2023/11/Sagittarius_C_NIRCam_Image_pillars-2000x1080.jpg'); background-color: transparent;}"
|
| 10 |
|
| 11 |
|
| 12 |
gemma_lm = keras_nlp.models.CausalLM.from_preset("hf://sultan-hassan/CosmoGemma_2b_en")
|
|
@@ -28,5 +26,5 @@ iface = gr.Interface(launch,
|
|
| 28 |
title="Hello, I am an expert in cosmology, try me!",
|
| 29 |
description="Gemma_2b_en fine-tuned on QA pairs (~3.5k) generated from Cosmology and Nongalactic Astrophysics articles (arXiv astro-ph.CO) from 2018-2022 and tested on QA pairs (~1k) generated from 2023 articles, scoring over 75% accuracy.")
|
| 30 |
|
| 31 |
-
iface.launch(
|
| 32 |
|
|
|
|
| 4 |
import keras
|
| 5 |
import keras_nlp
|
| 6 |
|
| 7 |
+
css = ".gradio-container {background: url(https://stsci-opo.org/STScI-01J6D97YGSQACWK990TH56K6AF.png)}"
|
|
|
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
gemma_lm = keras_nlp.models.CausalLM.from_preset("hf://sultan-hassan/CosmoGemma_2b_en")
|
|
|
|
| 26 |
title="Hello, I am an expert in cosmology, try me!",
|
| 27 |
description="Gemma_2b_en fine-tuned on QA pairs (~3.5k) generated from Cosmology and Nongalactic Astrophysics articles (arXiv astro-ph.CO) from 2018-2022 and tested on QA pairs (~1k) generated from 2023 articles, scoring over 75% accuracy.")
|
| 28 |
|
| 29 |
+
iface.launch()
|
| 30 |
|