Spaces:
Running
Running
abhaskumarsinha
commited on
Commit
•
ae0a2c0
1
Parent(s):
7d113e1
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ GPT.load_weights('AEON_30M.weights.h5')
|
|
23 |
inference = Generative_inference(GPT, tokenizer, input_len=256, k_value=5)
|
24 |
|
25 |
# Default text
|
26 |
-
default_input_text = "
|
27 |
|
28 |
# Define the function to generate text based on input
|
29 |
def generate_text(input_text, k_value=10, generate_limit=50):
|
|
|
23 |
inference = Generative_inference(GPT, tokenizer, input_len=256, k_value=5)
|
24 |
|
25 |
# Default text
|
26 |
+
default_input_text = "A black hole is a region of spacetime where gravity is so strong that nothing, including light and other electromagnetic waves, is capable of possessing enough energy to escape it. Einstein's theory of general relativity predicts that a sufficiently compact mass can deform spacetime to form a black hole. The boundary of no escape is called the event horizon. A black hole has a great effect on the fate and circumstances of an object crossing it, but it has no locally detectable features according to general relativity. In many ways, a black hole acts like an ideal black body, as it reflects no light."
|
27 |
|
28 |
# Define the function to generate text based on input
|
29 |
def generate_text(input_text, k_value=10, generate_limit=50):
|